Table of Contents

Distributed -Two-Phase Commit

About

The Two-Phase Commit is fairly standard for synchronous processing in order to avoid inconsistent state in a distributed environment.

Phases

1) User wants to Update; 2) Prepare; 3) Write to Log; 4) Ready; 5) Commit

First the User wants to Update, then the update is prepared, written to log, set to a ready state, and finally committed to the database.

Phase 1

Phase 2

Documentation / Reference