Two-Phase Commit — Protocol, Coordinator & Participants
Studies in this cluster, in series order. Each one keeps its own URL.
Distributed systems
Raft consensus, replication, consistent hashing, saga-style distributed transactions, two-phase commit, and conflict-free replicated data types.
- 1.Two-Phase Commit — Protocol, Coordinator & ParticipantsInterview hub: 2PC coordinator, votes, forced logs, blocking vs 3PC, Paxos Commit, and sagas.
- 2.Prepare & Commit - Votes, Logging & the DecisionPrepare and commit votes, force-before-send logging, and the decision record.
- 3.Failures & Recovery - Blocking, Coordinator Crash & Participant CrashCoordinator and participant crashes, blocking, termination rules, and heuristic decisions.
- 4.Optimizations - Presumed Abort, Presumed Commit & Read-Only VotesPresumed abort, presumed commit, and read-only votes without shrinking the uncertainty window.
- 5.XA & Database 2PC - Postgres PREPARE, MySQL XA & Heuristic DecisionsX/Open XA, Postgres PREPARE TRANSACTION, MySQL XA, and heuristic commit or rollback.
- 6.2PC vs 3PC vs Consensus Commit vs SagasWhy 3PC splits under partition, Paxos Commit as F>0 2PC, and when to use the existing saga series.