Apex › Distributed systems

Three-phase commit

The non-blocking fix for two-phase commit. 2PC leaves participants stuck holding locks if the coordinator crashes after the votes; 3PC's extra pre-commit phase lets the survivors decide on their own. Set the votes and the coordinator crash point, and compare the two protocols side by side — plus why consensus (Paxos/Raft) replaced both.

More in Distributed systems