A simple Raft implementation using gRPC for communication.
- Use go v1.14+
- Download the necessary dependencies using the following command
$ go mod download
To start the first Node
$ go run ./cmd/main.go -id=1 -addr=localhost:20001
To start a peer which connect to the first Node
$ go run ./cmd/main.go -id=2 -addr=localhost:20002 -join=localhost:20001
- Extend it to be a distributed key-value store