Consensus: Raft

1 / 4

Core pieces

  • Leader election
  • Log replication
  • Safety rules
2 / 4

Vote rules

  • Candidate term >= current term
  • Not already voted for someone else
  • Candidate log is up-to-date
3 / 4

Build

  • Vote grant logic
  • AppendEntries conflict fixups
  • Commit index
  • Conflict backtracking
  • Snapshots and compaction
  • Joint consensus commit
  • Election timeouts
  • Full AppendEntries handling
4 / 4
Use arrow keys or click edges to navigate. Press H to toggle help, F for fullscreen.