Replication and Quorums
Replication keeps copies of data on several machines, for availability (survive failures), read scale (more machines to read from) and latency (copies near users). It also creates the hardest bugs in distributed systems: stale reads, lost writes and conflicts. Interviewers probe whether you know which replication model you are using and what it costs.
In this lesson
- Learning objectives
- The three models
- Synchronous vs asynchronous
- Replication lag anomalies
- Quorums
- Self-check
Questions covered
- Compare single-leader, multi-leader and leaderless replication.
- What is replication lag and how do you protect read-your-writes?
- Explain quorums with N, W and R.
This lesson is part of System Design Interview: Concepts, Patterns & Real Designs. Unlock the full course to read it, take the quiz and track your progress.