Two-Phase Commit
A distributed transaction protocol that ensures all participating nodes either commit or abort a transaction. Provides atomicity across multiple databases or services.
Two-Phase Commit: Atomicity Across Systems
Coordinating commit or abort across multiple participants so they agree atomically.
Two-Phase Commit in Production: XA, Databases, and Coordinators
XA transactions, database 2PC, and the coordinator as the reliability crux.
Advanced 2PC: Blocking, Recovery, and Alternatives
The blocking problem, presumed-abort/presumed-commit, and when to avoid 2PC.
Two-Phase Commit: Review & Mastery Quiz
Scenario questions on phases, recovery, and trade-offs.
Free Books & Guides
Refactoring.Guru — Two-Phase Commit
The definitive modern guide to the Two-Phase Commit pattern. Clear explanations, UML diagrams, real-world analogies, and code examples in multiple languages.
SourceMaking — Two-Phase Commit
A comprehensive companion guide covering the Two-Phase Commit pattern with detailed rules of thumb, criticisms, and robust code snippets.
GoF Design Patterns — Two-Phase Commit
The original Gang of Four book describing the pattern. Available in the "Design Patterns: Elements of Reusable Object-Oriented Software" on Wikipedia.
Official Documentation
Refactoring.Guru — Two-Phase Commit
The definitive modern guide to the Two-Phase Commit pattern. Clear explanations, UML diagrams, real-world analogies, and code examples in multiple languages.
Wikipedia — Two-Phase Commit Pattern
Wikipedia article explaining the Two-Phase Commit pattern with examples and history.
Video Courses
freeCodeCamp — Design Patterns Course
A comprehensive multi-hour video course covering all major design patterns with implementations in JavaScript and TypeScript.
Design Patterns in Modern JavaScript Playlist
YouTube playlist covering creational, structural, and behavioral patterns with clear code walkthroughs.
Web Dev Simplified — Two-Phase Commit
Clear, concise video tutorials covering design patterns with practical examples.
Practice & Examples
Awesome Low-Level Design (GitHub)
A curated collection of free LLD resources, pattern implementations, and interview problems across multiple languages.
Design Patterns Implementation (GitHub)
The most popular open-source collection of design pattern implementations with detailed explanations.
Refactoring.Guru Examples in Two-Phase Commit
Code examples of the Two-Phase Commit pattern in TypeScript, Python, Java, and more.

