The Protocol
(Begin Phase 1) The coordinator sends a Request-to-Prepare message to each participant
The coordinator waits for all participants to vote
Each participant
- votes Prepared if it’s ready to commit
- may vote No for any reason
- may delay voting indefinitely
(Begin Phase 2) If coordinator receives Prepared from all participants, it decides to commit. (The transaction is now committed.) Otherwise, it decides to abort.