Coordinator 2PC, the experimental tool to synchronize distributed transactions guided by the two-phase commit approach.
Currently it works only over HTTP.
- Coordinator gets request with messages and distributes them to services.
- Each service handles received message, prepares transaction and sends confirmation request to coordinator.
- When coordinator gets confirmation requests from all expected services, it respond them that transactions can be commited.
- Services commit transations.
Two-phase commit approach does not guarantee entire consistency, it only may speed up service synchronization and decrease number of rollbacks.