This (partial) implementation of the RAFT consensus algorithm, that I wrote while taking the Rafting Trip course (which I highly recommend!).
- Go.
-
Clone this repo.
-
Run up to three Raft nodes (as a
followerorleader) identified by either1,2, or3.# Start a raft server [identified by number 1] as a leader: go run example/server/main.go 1 leader# Start a raft server [identified by number 2] as a follower: go run example/server/main.go 2 follower -
Connect to either node (identified by either
1,2, or3) using the client app.# Connect to a raft server [identified by number 2] with the client app: go run example/client/main.go 3