Three-phase commit (3PC)
Like 2PC but with a pre-commit phase in the middle and time limits, so it doesn't block.
Example
If the message doesn't arrive within 5 seconds, the node aborts instead of waiting forever.
Test yourself: Three-phase commit (3PC)
Distributed transactions
What does 3PC add to 2PC?
It splits the commit phase in 2: pre-commit and commit. Total: 3 phases.
Distributed transactions
3PC avoids waiting forever by using a ___ in each phase.
If the expected message doesn't arrive within, say, 5 seconds, the node decides on its own instead of staying blocked as in 2PC.
0/2
â–¶ Play