Distributed Transactions
Advanced · 19 min read · High-Level Design, Distributed Systems Theory
Two-phase commit, Sagas, the outbox pattern and idempotent workflows.
This is an Advanced lesson, part of Premium. What it covers:
- Two-phase commit (2PC)
- Sagas
- Making each step reliable
- Avoiding distributed transactions altogether
- Comparison
- Interview questions
- Practice
- Further reading
Previous: Consensus, Leader Election & Locks · Next: Unique ID Generation