Raft is famous for being the understandable consensus algorithm. The paper is readable, the animations are clear, and after an hour you feel you have it. Then you try to implement it, and you find that every sentence in the paper is there because of a specific failure, and that leaving out any one of them produces a cluster that works until the day it loses data.
raft-kv is my attempt to learn it properly: a distributed key-value store on a from-scratch Raft implementation in Go, using only the standard library. Half of the project is the system itself. The other half is the tooling to torture it and check that it stays correct. It is a learning project, not a production database.
What it does
There are four parts:
raft : the consensus core.…