
Distributed Transactions are Hard (How Two-Phase Commit works)
The Backend Engineering Show with Hussein Nasser
00:00
Distributed Transaction for Atomicity
Two-phase commit is an algorithm to solve the problem of atomicity in a distributed system. It involves preparing transactions for committing or rollback, and then having them come back into life when they're ready. The idea behind it is that you can tell other nodes not to treat this as a committed transaction. But there's no perfect way to work around problems such as concurrency control issues.
Transcript
Play full episode