Rebuild it
Implement leader election with three simulated servers and random timeouts, then add log replication.
Four prompts, in order. Each builds on the last. Write as you go; your notes stay on this device and work offline.
Implement leader election with three simulated servers and random timeouts, then add log replication.
Study Figure 8. Why can't a new leader treat an old-term entry as committed just because a majority store it?
What happens if election timeouts are shorter than message delivery time?
Dynamo had no leader at all. What does Raft gain and lose by having one?