SkillSprout
Chapter 19

Leader and Follower

Many replicated systems let one node accept writes (the leader) while others copy it (the followers). This chapter shows how that works, how a new leader is chosen when the old one fails, and how to stop two leaders from existing at once.

1The Leader and Follower Pattern
Intermediate
4 min
2Leader Election and Failover
Intermediate
4 min
3Split Brain and Fencing
Advanced
4 min

Chapter quiz

Leader and Follower · 5 questions

  1. 1.What is the main reason for having a single leader?

  2. 2.Which replication mode risks losing recent writes if the leader crashes?

  3. 3.How many failures can a 5-node majority cluster tolerate?

  4. 4.Why must a candidate have an up-to-date log to win an election?

  5. 5.What does a fencing token let storage do?

0 of 5 answered