Atomic transaction
Order state and its corresponding outbox event are committed together.
A focused reference implementation for reliable event publication across transactional boundaries.
The problem
The dual-write window can leave business state committed while its corresponding event is missing. The transactional outbox pattern moves event durability into the same database transaction.
Verified capabilities
These capability descriptions are intentionally limited to the evidence-backed implementation surface.
Order state and its corresponding outbox event are committed together.
PostgreSQL FOR UPDATE SKIP LOCKED and a short claim lease support concurrent relays.
Transient publisher failures use bounded exponential backoff.
Processed event state is keyed by consumer and event ID.
Per-aggregate sequence data makes ordering an explicit downstream concern.
Duplicate publication after a relay crash remains an explicit at-least-once scenario.
Architecture
The diagram below represents the current verified architecture boundary; planned or environment-dependent components are described in the engineering notes rather than silently promoted.
The transaction closes the business-state/event durability window.
Engineering deep dive
Technology names matter less than the engineering contracts they enforce.
The transaction closes the business-state/event durability window.
Short relay leases reduce concurrent ownership conflicts without claiming duplicates are impossible.
Consumer idempotency is a separate boundary from event publication.
Tests cover validation, rollback, relay behavior, retries, HTTP validation and idempotency.
Project status
Focused reference implementation with Go domain/application layers, PostgreSQL migrations, relay semantics, HTTP API, Docker Compose and tests.
Public implementation — source and architecture documentation are available.