Databases

Two-phase commit (2PC)

A coordinator asks everyone if they're ready (prepare) and, if all say yes, asks them to commit.

Example

If 1 of 5 nodes says 'not ready', the coordinator aborts on all 5.

Test yourself: Two-phase commit (2PC)

Distributed transactions

2PC's first phase is called ___.

Lessons that use it

More databases terms

All terms →

Arki, the beaver mascot

Your next interview starts with 5 minutes today.

Free on iOS and Android. Start from zero, no account needed.