Concept Flow - Distributed transactions and 2PC
Client starts transaction
Coordinator sends PREPARE to all participants
Participants vote: YES or NO
Coordinator receives all YES
Coordinator sends COMMIT
Participants commit
Transaction ends
The coordinator asks all participants if they can commit. If all agree, it tells them to commit; if any say no, it tells them to abort.