Three-Phase Commit (3PC) is an atomic commit protocol by which several nodes in a distributed system agree either to commit a transaction everywhere or to abort it everywhere. A coordinator first asks each node whether it is prepared, then announces that the transaction will be committed, and finally instructs the nodes to commit. It was proposed by Dale Skeen in 1981.
The pre-commit phase was added to reduce the blocking problem of Two-Phase Commit (2PC), in which participants can wait indefinitely if the coordinator fails. However, every transaction requires several rounds of synchronous communication with all participants, so latency is high and the cost of agreement grows with the number of nodes. Because it cannot guarantee safety under network partitions, consensus algorithms such as Paxos and Raft are more widely used in practice.