# eliben/raft

:rowboat: Raft implementation in Go

Repository: https://github.com/eliben/raft
Canonical: https://ross.abutalabs.com/products/eliben-raft
Language: Go
License: Unlicense
License Family: permissive
Last push: 2026-03-30T12:36:49+00:00

## Health v2 (maintenance only)
Score: 66/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 74, release rhythm 35, longevity 100
- inputs: {"age_days": 2405, "days_push": 156, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1425, forks 204 (observed 2026-08-28T04:04:41.527546+00:00)

## What it is
An instructional implementation of the Raft distributed consensus algorithm in Go, organized as self-contained partN directories accompanying a blog post series. It includes tests, a log visualization tool, and a key/value database built on top of the Raft implementation.

## Use cases
- learn how the raft consensus algorithm works
- understand leader election and log replication with readable code
- study a step-by-step raft implementation with blog posts
- visualize raft server logs during tests
- see how to build a key/value database on raft
- reference implementation for writing my own consensus code

## When to choose
- you want to learn or teach raft by reading clear, dependency-free Go code
- you want a small, self-contained raft codebase to experiment with
- you want to follow along with an in-depth blog series on consensus

## When to avoid
- you need a production-grade raft library for a real distributed system
- you need a maintained, feature-complete consensus package with support guarantees
- you expect a single reusable module - the code is deliberately duplicated across parts

## Facets
- artifact type: learning-resource
- maturity: active
- function: concurrency, developer-tools, testing
- domain: microservices, tutorials, education
- platform: go, cli, cross-platform
- tags: raft, consensus, distributed-systems, instructional, go, blog-series, algorithms

## Member repositories
- eliben/raft (main) score 66

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:41.527546+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:37:30.743549+00:00, confidence not recorded.
  - readme: https://github.com/eliben/raft (fetched 2026-08-28T04:04:41.527546+00:00, sha cee3bd8c9a1a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
