December 2023
Intermediate to advanced
464 pages
12h 36m
English
Content preview from Patterns of Distributed Systems
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
Start your free trial



Chapter 21
Two-Phase Commit
Update resources on multiple nodes in one atomic operation.
Problem
When data needs to be atomically stored on multiple cluster nodes, nodes cannot make the data accessible to clients until the decision of other cluster nodes is known. Each node needs to know if other nodes successfully stored the data or if they failed.