Skip to content

Experimental tool to synchronize distributed transactions guided by the two-phase commit approach.

License

Notifications You must be signed in to change notification settings

vTinMan/coordinator_2pc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coordinator 2PC, the experimental tool to synchronize distributed transactions guided by the two-phase commit approach.

Currently it works only over HTTP.

How does it work? (optimistic scenario)

  1. Coordinator gets request with messages and distributes them to services.
  2. Each service handles received message, prepares transaction and sends confirmation request to coordinator.
  3. When coordinator gets confirmation requests from all expected services, it respond them that transactions can be commited.
  4. Services commit transations.

Process sequence diagram

Process sequence diagram

Note

Two-phase commit approach does not guarantee entire consistency, it only may speed up service synchronization and decrease number of rollbacks.

About

Experimental tool to synchronize distributed transactions guided by the two-phase commit approach.

Resources

License

Stars

Watchers

Forks

Languages