raft-kv: a from-scratch Raft key-value store in Go built as a learning project
A developer has built raft-kv, a distributed key-value store running on a Raft consensus implementation written from scratch in Go using only the standard library. The project is intended as a learning exercise rather than a production database. It comprises the Raft core with leader election, log replication, persistence and snapshots, a replicated key-value state machine with an HTTP API, a simulated network for fault injection, and a linearizability checker for verifying client histories. The write path and the reasoning behind specific Raft rules, such as up-to-date vote checks and committing only current-term entries, are explained. Membership changes are handled one server at a time, following a known fix for a safety issue.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in