Implementation of the Raft consensus protocol for distributed log consistency
To use the Raft implementation in your own project, import the package after running the following command
go get github.com/amodkala/raft/pkg/raft
A container image running a demo Raft peer is available via the GitHub Container Registry
docker pull ghcr.io/amodkala/raft:main
With a Flake-enabled Nix installation, simply run
nix build github:amodkala/raft#bin
NOTE: the WAL is written to /var/{id}.wal, so sudo privileges are required
sudo ./result/bin/cmd
With a Flake-enabled Nix installation:
nix build github:amodkala/raft#docker