Pattern 51 / CONSISTENCY
Outbox Pattern
Use this when Reliably publishing events after a database write.
- Pressure
- Reliably publishing events after a database write
- Mechanism
- Persist the business change and outbound event in the same transaction; a relay later publishes pending events
- Toll
- Requires a relay, dedupe, monitoring, and cleanup of old outbox rows