Go implementation of the Raft consensus protocol
open sourceMPL-2.0free
HashiCorp Raft is a Go library that implements the Raft consensus protocol: it manages a replicated log and, with your finite-state machine, replicated state machines for building consistent, partition-tolerant (CP) systems. Its log and stable stores are pluggable, with raft-mdb (LMDB) recommended and raft-boltdb as a pure Go option. Version 1 adds server identities by UUID, non-voting servers, an address provider abstraction and more resilient snapshots. HashiCorp's Consul uses it.
Problems it solves
- keep state consistent across a cluster of my Go servers when one fails
- elect a leader among several Go service instances
- build a replicated key-value store in Go on a consensus protocol
Features
- replicated log driving your finite-state machine
- pluggable LogStore and StableStore (raft-mdb, raft-boltdb)
- non-voting servers
- server identities by UUID
- snapshots
- address provider abstraction in the transport layer
