Consensus and leaders
Lesson 17 of 40 · Sys.Micro
How a group of machines agrees on one leader and one order of events — even when some fail.
A config store runs on 5 nodes. Exactly one must be the leader that orders writes; otherwise two nodes might accept conflicting updates. Messages can be delayed and nodes can crash at any time.
Why “just pick the server with the lowest ID” fails
Majorities (quorums) and why clusters have 3 or 5 nodes
Check yourself
Why do consensus clusters usually have 3 or 5 nodes rather than 4?
Do it in the browser: a real system design tool, a short mission and instant feedback. No install.
Start this lesson — free