# hashicorp/raft

Golang implementation of the Raft consensus protocol

Repository: https://github.com/hashicorp/raft
Canonical: https://ross.abutalabs.com/products/raft
Language: Go
License: MPL-2.0
License Family: copyleft
Last push: 2026-08-23T14:12:34+00:00

## Health v2 (maintenance only)
Score: 74/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 28, longevity 100
- inputs: {"age_days": 4685, "days_push": 10, "days_rel": 531, "gap_med": 69, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 9106, forks 1082 (observed 2026-08-28T04:10:28.415523+00:00)

## What it is
A Go library implementing the Raft consensus protocol for managing a replicated log and replicated state machines. It enables building consistent, partition-tolerant (CP) distributed systems with fault tolerance.

## Use cases
- build a replicated state machine in Go
- implement leader election and consensus in a distributed system
- create a distributed key-value store
- replicate application state across a cluster
- build a CP system with fault tolerance

## When to choose
- you need battle-tested Raft consensus in a Go application
- you are building a distributed system requiring a replicated log
- you want a library used in production systems like Consul

## When to avoid
- you need a ready-made distributed database rather than a consensus library
- your project is not written in Go
- you need a consensus protocol other than Raft

## Facets
- artifact type: library
- maturity: stable
- function: concurrency, developer-tools
- domain: microservices, databases, developer-tools
- platform: go, cross-platform
- tags: raft, consensus, replicated-log, distributed-consensus, fsm

## Member repositories
- hashicorp/raft (main) score 74

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:28.415523+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-29T17:23:58.461355+00:00, confidence not recorded.
  - readme: https://github.com/hashicorp/raft (fetched 2026-08-28T04:10:28.415523+00:00, sha a7dada850ad0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
