Atomic Commit Protocol
Atomic Commit Protocol
Phase 1: Voting
•In this phase, the Coordinator will check about the “ready”
message. If each worker sent a “ready” message then only a
“commit” message is sent to each worker; otherwise, send an
“abort” message to each worker.
•In this phase, Workers wait until the coordinator sends a “commit”
or “abort” message; then act according to the message received.
If all of the nodes are able to commit, the coordinator moves on to the
prepare phase, in which it sends a request to all of the participating
nodes, asking them to prepare to commit the transaction.