Companion code for the article "Async Doesn't Change Your Architecture. It Exposes It."
Demonstrates four claims on a real Postgres:
- the outbox row is written in the same transaction as the state change, so a rolled-back reservation cannot leave an event behind;
- the relay is the only thing that publishes, and it publishes after commit;
- delivery is at-least-once, so duplicates really do arrive;