# Patterns
All Patterns notes →14 — Transactional Outbox
Atomically write to the database and publish a message by using a single local transaction. The outbox table is polled or tailed by CDC to publish reliably. Solves the dual-write problem.
patterns data distributed-systems data-consistency maang-prep
Jun 30, 2026
15 — Saga
Manage distributed transactions across multiple services using a sequence of local transactions with compensating actions on failure. The microservices answer to 2PC.
patterns distributed-systems data-consistency maang-prep
Jun 30, 2026