NOTE
2.7 Distributed Transaction Solution: Two Phases
A two-phase transaction separates preparation from commit or rollback. These notes organize database-level 2PC and application-level TCC approaches.
This is a historical learning note and may contain outdated or incomplete understanding.
1. What Is the Two-Phase Approach?
- Divide the entire transaction process into two phases:
- Preparation phase.
- Commit phase or rollback phase.
2. Two-Phase Implementations
2.1. Database Layer
2.2. Application Layer
3. References
Drag to pan, scroll to zoom, and click a node to expand or collapse it. Large maps start with deeper levels collapsed; click nodes to expand them.
Discussion
Sign in with GitHub to comment. Discussions are stored as GitHub Issues.View on GitHub