Three-phase commit protocol
go run coordinator/coordinator.go 172.17.0.1 5672 4 failure1
go run cohort/cohort.go 172.17.0.1 5672
go run cohort/cohort.go 172.17.0.1 5672 abort
go run cohort/cohort.go 172.17.0.1 5672 failure2
go run cohort/cohort.go 172.17.0.1 5672 write /tmp/file.txt hello world
docker build -t "matb4r:3pc" .
docker run -it matb4r:3pc /bin/sh
docker build -t matb4r:coordinator coordinator
docker build -t "matb4r:cohort" cohort
docker run -it --network=host matb4r:coordinator 192.168.0.17 5672 1 failure2
docker run -it --network=host matb4r:cohort 192.168.0.17 5672 write /tmp/file.txt hello world