Distributed Systems: Failure, Replication, and Consensus
Reason about uncertainty across network calls, replica freshness, leader election, and quorum-based commits.
Curriculum (9 steps)
In a distributed system, a caller may lose contact with a process that is still running, or receive no response after the remote side completed its work.
An interactive concept flow for distributed calls can fail halfway through, from its assumptions through the main operation and boundary checks.
Follow the key state changes and boundary checks involved in distributed calls can fail halfway through.
Replication stores copies of data on multiple machines to improve availability, read capacity, or recovery.
An interactive concept flow for replication improves availability at a consistency cost, from its assumptions through the main operation and boundary checks.
Consensus lets a group of processes agree on an ordered sequence of decisions despite specified failures.
Follow the key state changes and boundary checks involved in raft uses terms and quorums to choose a leader.
Run a Raft Failure Tabletop
practiceUse a three-node cluster to reason about elections, log replication, quorum loss, and which client outcomes remain uncertain.
Explain the model, execution steps, complexity, and limits of raft uses terms and quorums to choose a leader.