Everything About ___
Live briefing

Everything about Two-phase commit protocol

Computer science transaction algorithm

In transaction processing, databases, and computer networking, the two-phase commit protocol is a type of atomic commitment protocol (ACP). It is a distributed algorithm that coordinates all the processes that participate in a distributed atomic transaction on whether to commit or abort the transaction. This protocol achieves its goal even in many cases of temporary system failure, and is thus widely used. However, it is not resilient to all possible failure configurations, and in rare cases, manual intervention is needed to remedy an outcome. To accommodate recovery from failure the protocol's participants use logging of the protocol's states. Log records, which are typically slow to generate but survive failures, are used by the protocol's recovery procedures. Many protocol variants exist that primarily differ in logging strategies and recovery mechanisms. Though usually intended to be used infrequently, recovery procedures compose a substantial portion of the protocol, due to many possible failure scenarios to be considered and supported by the protocol. Wikipedia →

🧭 Start here: a 6-step reading path

  1. Read the overview: Two-phase commit protocolA 5-minute orientation
  2. Pick up a classic book: Data Communications and NetworkingThe most-reprinted book on the subject
  3. Read the landmark paper: The Two-Phase Commitment Protocol in an Extended π-CalculusCited 27 times
  4. Go sideways: Three-phase commit protocolA closely related topic
  5. Go sideways: Commit (data management)A closely related topic

📖 Definitions

No dictionary entry for this exact phrase.

🏆 Landmark papers (most cited)

📚 Books worth reading

Ranked by number of editions on Open Library, a rough measure of how lasting a book is.

🔗 Related topics