Two-Phase Commit Protocol in Distributed Databases: How It Works
https://knowledge.businesscompassllc.com/two-phase-commit-protocol-in-distributed-databases-how-it-works/
When multiple databases need to work together on a single transaction, keeping everything in sync becomes a real challenge. The two-phase commit protocol (2PC) solves this problem by making sure all databases either complete a transaction together or roll it back completely—no half-finished business allowed.