This simulator visualizes the two-phase commit protocol in action, letting you watch prepare requests, votes, and final commit or abort decisions flow between a coordinator and its participants in real time.
Trigger a transaction, observe each participant's vote during the prepare phase, and then inject a coordinator crash at different points to see how the blocking problem leaves participants stuck holding their locks.
Use the controls to start a transaction, toggle individual participant votes, and simulate a coordinator crash at chosen points in the protocol to observe the resulting behavior.
Many real-world distributed databases avoid pure two-phase commit for cross-node transactions specifically because of the blocking problem, preferring consensus-replicated coordinators or leaderless designs that tolerate node failures without freezing the whole cluster.
This simulator visualizes the two-phase commit protocol in action, letting you watch prepare requests, votes, and final commit or abort decisions flow between a coordinator and its participants in real time.
This simulator visualizes the two-phase commit protocol in action, letting you watch prepare requests, votes, and final commit or abort decisions flow between a coordinator and its participants in real time.
Trigger a transaction, observe each participant's vote during the prepare phase, and then inject a coordinator crash at different points to see how the blocking problem leaves participants stuck holding their locks.
Many real-world distributed databases avoid pure two-phase commit for cross-node transactions specifically because of the blocking problem, preferring consensus-replicated coordinators or leaderless designs that tolerate node failures without freezing the whole cluster.