Interview's MateSystem Design
Interview's Mate

System Design

Architecture & trade-offs

Visualizer

DSA Visualizer
All 32 lessons
Custom Playground
Try your own examples

Learning

System Design
31 architecture topics
SQL Learning
160 foundations → production topics
AI Engineering
160 LLM → backend topics
Data Science
160 Python → MLOps topics
Data Engineer
160 SQL → streaming topics
Docker
160 Docker learning topics
Kubernetes
160 K8s fundamentals → cloud
Java LearnSoon
Coming soon
Python Learn
Interview Q&A & internals
JavaScript Learn
Closures, async & DOM Q&A
Tech Learn
Search, practise & track Q&A
AI DSA Practice
Solve coding problems
Theme
Home
All topics/Consistency Models
DISTRIBUTED SYSTEMS & ARCHITECTURE · SUBTOPIC

Quorum Reads & Writes (W + R > N)

Tune consistency vs. availability in leaderless stores by adjusting N, W, and R.

AdvancedPart of Consistency Models
Practice in AI HLD
Subtopics in Consistency Models (2)
OverviewConsistency SpectrumQuorums (W+R>N)

In plain words

If 5 friends keep copies of a score (N=5), and you tell at least 3 friends every update (W=3) and ask at least 3 friends whenever you check (R=3), at least 1 friend you ask is guaranteed to know the newest score!

Think of it like…

Pigeonhole principle: 3 + 3 > 5 guarantees overlap.

Loading interactive diagram
Loading interactive exercise

Theory & how it works

Why W + R > N isn’t enough alone for true linearizability

If two writers update simultaneously, timestamps can tie or read-repair may still be in flight. Production Dynamo-style stores pair W + R > N with sloppy quorums / hinted handoff, read-repair, and Merkle trees (anti-entropy) to converge replicas cleanly.

Key points & practical guide

Summary checklist

  • N = replicas, W = write acks needed, R = read responses needed
  • Common balanced setting: N=3, W=2, R=2
  • Use W=1, R=N for fast writes; W=N, R=1 for ultra-fast reads

When to use it

  • Cassandra, DynamoDB-style leaderless clusters

Watch out for

  • Thinking W+R>N gives bank-grade serializable transactions without consensus or LWT

Quick check

Loading quiz
Previous subtopic
Linearizability, Causal & Read-Your-Writes
Back to overview
Full Consistency Models Lesson