repositorypackage
0.0.0-20241004223855-d4093afa89b4
Repository: https://github.com/juancarl0s/rft.git
Documentation: pkg.go.dev
# README
rft
Overview
This (partial) implementation of the RAFT consensus algorithm, that I wrote while taking the Rafting Trip course (which I highly recommend!).
Prerequisites
- Go.
Steps to run
-
Clone this repo.
-
Run up to three Raft nodes (as a
follower
orleader
) 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