Simple Two Phase Commit protocol implementation
run main
in class Test
- network emulation
- join/leave network
- transport (send, recv, broadcast)
- message encapsulation
- async IO (simple message queue)
- network jamming
- test
- timer
- scheduled task
- listen/notify
- change timeout
- test
- 2PC
- rpc (Command/CommandResponse)
- command timeout
- client command (cmd)
- role
- Primary (coordinator)
- Replica (replica)
- test
- rpc (Command/CommandResponse)