Cianplan

Level 3: Distributed systems · L3.1 Time, clocks, consensus & leader election

Raft: leader election and log replication

Walk through a Raft election and a committed log entry.

15 min · Pro

What you take away

  • Raft splits consensus into three problems: electing a leader, replicating a log, and the safety rules that make both correct.

And 3 more inside the class, in Pro.

How the class is laid out

  1. The problem
  2. The simple version
  3. Electing a leader
  4. Replicating the log
  5. What you actually use it for
  6. Check your understanding