Distributed Systems
Quorum reads and writes
Explain quorum reads and writes, how R plus W greater than N makes a read overlap the latest acknowledged write, and why that guarantee covers one key only.
What you will be able to do
- Explain why R plus W greater than N makes a quorum read overlap the latest acknowledged write.
- Decide the read and write level for a table, given its replication factor.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Distributed Systems
- Leader electionIntermediate · 4 min
Explain leader election in Raft, where terms and majority votes allow at most one leader per term, and why a paused old leader still needs a check before it writes.
- Raft logsIntermediate · 5 min
Explain Raft log entries, how a majority commit makes an entry survive a leader change, and why an uncommitted entry can be overwritten, so clients must retry safely.
- Split brain preventionAdvanced · 5 min
Explain how split brain happens when two nodes each take over during a partition, and how a majority rule, a witness and fencing prevent two active owners.
- Fencing tokensAdvanced · 4 min
Explain fencing tokens, where a resource rejects writes carrying an older token, and why a lock alone cannot stop a paused holder from writing after its lease has…
- LeasesAdvanced · 4 min
Explain leases as time-limited rights that holders renew, how Kubernetes uses Lease objects for node heartbeats and leader election, and why a delayed renewal looks…
- Idempotency keysAdvanced · 4 min
Explain idempotency keys, where the client creates one key per logical operation so a server can return the first result when a request is retried after a timeout.