Skip to content

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.


The fastest way to see the Relay in action is our pre-configured demo environment. It spins up Postgres, NATS, and the Relay automatically.

  1. Start the core services:

    Terminal window
    git clone https://github.com/open-outbox/relay.git
    cd relay/examples/demo
    docker compose up -d
  2. Choose your ingestion workload:

    Trigger the benchmarking profile to stream events continuously into the engine using our optimized load generator. Keep this terminal window open!

    Terminal window
    docker compose --profile load up producer
  3. Check Relay Throughput:

    Open a separate terminal window and follow the Relay logs to watch it claim and deliver batches of events continuously to NATS:

    Terminal window
    docker compose logs -f relay
  4. Stop the producer simulation:

    Whenever you are ready to pause the active traffic generation, switch back to your producer window and press Ctrl+C.


Open Outbox Relay exposes robust OpenTelemetry trace spans and Prometheus metrics. Spin up the visual telemetry suite to inspect performance metrics and execution paths live.

Terminal window
docker compose --profile telemetry up -d
  1. Open http://localhost:16686 in your browser.
  2. Select Service: openoutbox-relay
  3. Select an operation (e.g., Engine.Process) and click Find Traces.

This layout displays exactly how long each phase—Database Claiming versus Broker Publishing—takes for every batch cycle. Producer Bench Output

The telemetry suite includes a pre-provisioned Grafana instance mapping native service thresholds out of the box.

  1. Open http://localhost:3000 in your browser.
  2. Navigate to the Dashboards section → “Open Outbox” folder.
  3. Select the “Open Outbox Dashboard”.

This panel provides real-time visualization of your system’s EPS (Events Per Second), Batch Efficiency, and overall SLO compliance. This dashboard configuration matches our official panel hosted on Grafana.com/dashboards/25229.

Producer Bench Output