Quick Start
The Open Outbox Relay is a high-performance bridge that ensures “at-least-once” delivery of events from your database to your message broker.
Live Demo
Section titled “Live Demo”The fastest way to see the Relay in action is our pre-configured demo environment. It spins up Postgres, NATS, and the Relay automatically.
-
Start the environment:
Terminal window git clone https://github.com/open-outbox/relay.gitcd relay/examples/demodocker compose up -d -
Simulate a business event: Insert a record directly into the Postgres outbox table. The Relay will detect it and deliver it to NATS instantly.
Terminal window docker compose exec postgres psql -U postgres -d postgres -c \"INSERT INTO openoutbox_events (event_id, event_type, payload, partition_key)VALUES (gen_random_uuid(), 'openoutbox.events.demo', '{\"id\": 123, \"name\": \"Alice\"}', '123');" -
Check the logs:
Verify the Relay picked up the event:
Terminal window docker compose logs relay
Next Steps
Section titled “Next Steps”Now that you’ve seen the Relay in action, you’re ready to integrate it into your own infrastructure.
- Deployment Guide: Learn how to apply the database schema and deploy the Relay to your own environment.
- Configuration Reference: Explore all environment variables for tuning and reliability.
- Maintenance Guide: Learn how to use the CLI to prune historical data.