The interview problem
A replicated key-value store uses N=3, W=2 and R=2. Explain quorum intersection and why those numbers alone do not prove linearizable behavior.
Original practice, not a reported company interview. Scenarios and numbers are illustrative. Interview date: not applicable. Sources retrieved October 1, 2026.
1. Scope and worked approach
Assume a fixed replica set for the basic intersection argument. Every successful write touches W replicas and every read consults R, so R+W>N ensures the sets overlap. To return the latest valid value, the protocol still needs an ordering/version rule, handling of concurrent writes and incomplete operations, and compatible membership changes. Define whether hinted or fallback replicas count; sloppy placement can break the simple argument.
2. Trace the design or derivation
Choose fixed replica set → collect acknowledgments → resolve versions → return declared guarantee
A test should enumerate histories, not only failures: write one value, allow a second write to time out, then read from different quorum combinations. Specify which outcomes the consistency model permits. Successful acknowledgments establish completed operations, while timed-out operations may still affect later reads.
3. Calculate the example
With replicas {A,B,C}, write set {A,B} and read set {B,C} intersect at B. But if the reader arbitrarily returns C's older value, intersection has not helped. With W=1 and R=1, disjoint sets are possible. W=2 permits one unavailable replica for a write in the fixed three-replica case, not tolerance of any two failures.
4. Failure cases and trade-offs
Clock-based versions can misorder concurrent writes when clocks skew. A timed-out write may have reached some replicas. Changing membership without preserving quorum relationships introduces gaps. Stronger coordination simplifies ordering while potentially reducing availability during partitions; weaker designs must expose conflicts or weaker guarantees honestly.
5. Validation, follow-ups and self-review
Enumerate quorum sets, inject partially completed writes and concurrent values, and test reconfiguration. Follow-up: what should a reader return after an ambiguous write timeout? Reward separation of set intersection from a complete consistency protocol.
Sources and related practice
Technical reference: cassandra.apache.org — Replication, quorum and gossip background; the hypothetical protocols are not claims about Cassandra's exact implementation.
Source publication/update: Not established. Retrieved October 1, 2026. The workflow, calculations and review exercises are original; this reference is not evidence that a company asked this question.
Continue with Fail over a regional write service safely; Keep a user's reads from moving backward across replicas.
Continue your preparation
Choose a connected learning path or browse more System design questions. Read our editorial method and attribution policy.