Two-phase commit is a distributed transaction protocol in which a coordinator first asks every database node whether a change can succeed, then instructs all nodes to commit only when every node agrees. section 12.0
A simplified transaction proceeds in two phases:
- The coordinator sends a commit request to each node, and each node checks whether the query can execute. section 12.0
- Each node returns a yes-or-no decision; if every node agrees, the coordinator instructs all nodes to commit. section 12.0
- After agreeing, nodes must fulfill the commit request, while coordination overhead increases as more nodes join the cluster. section 12.0
Figure 12.1 The communication overhead between the nodes increases with every node that joins the cluster.
Use the figure to visualize how communication overhead grows as database-cluster nodes coordinate transactions. section 12.0



