Please visit https://underscorenico.github.io/blog/2019/11/12/total-order-broadcast/ for implementation details.
The project uses makefile, to build simply run:
make all
and to test it simply run:
make test
or
make test-race
Run the binary:
.bin/github.com/underscorenico/tobcast
Note: keep in mind that every time you run the binary, the configuration is read, so you need to update the tcp listen port every time you launch a new instance.
If you want to use tobcast as a Go dependency simply:
go get github.com/underscorenico/tobcast/tobcast
and import it in your project:
import "github.com/underscorenico/tobcast/pkg/tobcast"