Watch & Poke · Shorts Parts 1–5
Five ways backup servers disagree — and how Raft keeps one truth
Each rung shows one rule that sounds right and breaks. Predict first, then run it.
Step 1 of 5
A cut cable, two leaders
Two data centres hold copies of one bank balance. A cable between them snaps. This rule lets a side crown a leader with any vote at all.
What happened
Step 2 of 5
Three timers ring at once
The leader of three servers crashes. A leader sends periodic I’m-alive pings (heartbeats), and each follower’s timer restarts when one arrives. With no leader, each follower waits for its timer to run out, then asks the others to vote for it. Here every timer has the same length.
What happened
Step 3 of 5
The old leader comes back
Each election starts a new numbered era (a term), and the server labels now show it. Server A led in term 1, then lost its network. Leader A still holds old X=3. The other four elected C in term 2 and saved X=7. This rule makes followers obey any leader.
What happened
Step 4 of 5
Three copies are not enough
Each square is a write in the server’s ordered history list (a log entry), stamped with the term that wrote it. Marking an entry permanently sealed is called committing it — and committing an entry also seals every earlier square above it. Leaders crash and change. This rule commits an entry once most servers hold a copy.
- Solid green + ✓ = permanently sealed
- Blue outline = copied, not yet sealed
- Tan dashed = rival unsealed write
What happened
Step 5 of 5
A leader that no longer leads
Leader A holds X=1. A cut cable leaves A with only B. The other three elect C and save X=2. Leaders already send periodic I’m-alive pings (heartbeats). Under the broken rule, cut-off Leader A answers a read from memory without waiting for fresh replies.
What happened
Your predictions
Saved in this browser. First predictions and revisions are kept apart.