pokabox

module
v0.0.0-...-322893a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2020 License: GPL-3.0

README

Pokabox

Pokabox is Go transactional outbox pattern implementation for Postgres and Kafka.

For another implementation for MongoDB and Kafka, please see Mokabox.

Table of Contents

How It Works?

TODO

Getting Started

  1. Create outbox table
CREATE TABLE outbox(
  id            UUID PRIMARY KEY,
  group_id      UUID NOT NULL,
  kafka_topic   VARCHAR(255) NOT NULL,
  kafka_key     VARCHAR(255) DEFAULT NULL,
  kafka_value   TEXT NOT NULL,
  priority      INT DEFAULT 1000,
  status        VARCHAR(4) DEFAULT 'NEW',
  version       INTEGER DEFAULT 1,
  created_at    TIMESTAMP NOT NULL,
  sent_at       TIMESTAMP DEFAULT NULL
);

Events Handling

TODO

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL