Publish a PostgreSQL outbox to RabbitMQ

Relay committed application events in batches and mark each PostgreSQL event as published only after RabbitMQ confirms the message.

9 stepsProduct and engineering

Free to start, no card required.

How it works

  1. When this happens

    The outbox relay is due

    Schedule

  2. Step 1 · Code

    Choose the event type and queue

  3. Step 2 · Postgres

    Claim up to 25 pending events

  4. Step 3

    Relay each claimed event

    1. Step 4 · Code

      Prepare the identified event

    2. Step 5 · RabbitMQ

      Publish the persistent event

    3. Step 6 · Code

      Verify the broker confirmation

    4. Step 7 · Postgres

      Mark this claim as delivered

    5. Step 8 · Code

      Confirm the outbox update

    Repeats for every item

Before you start

Map both SQL statements to your transactional outbox with a UUID event key, event type, payload, creation time, lease fields and publication time. Set the event type and an existing durable queue in the routing step. Consumers must deduplicate by event ID because a retry can repeat a confirmed message.

Accounts to connect

Your first automationstarts with one sentence.

Start free with 1,000 credits, no card needed. Rather have it done for you? Our team builds it.

Use template