Distributed ReliabilityRetry, idempotency and ownershipPrincipal
Why can a sloppy quorum miss a completed write even when R plus W exceeds N?
By Amit Kumar2 min readWorked answer includedReviewed 28 Sept 2026
The question
Interview question
A replicated key uses N=3 with read and write counts of two. A preferred replica is unavailable and a write uses a substitute. A later read of recovered preferred replicas returns stale state. Explain the set-intersection assumption, show a concrete membership counterexample and compare a version-constrained read with strict-quorum availability.
Draft your approach first
Take a few minutes before you read the answer. Name the constraint that matters most, the failure you are designing for and how you would know it worked.
Reveal the worked answerWorked answer
The familiar R + W > N argument relies on an assumption people often leave out: both operations choose their acknowledgments from the same fixed set of N replicas. If N is 3 and R and W are 2, any two sets of two among those three must share a node. That node can provide the latest completed version, assuming the read reconciles responses correctly and no newer concurrent write complicates the claim.
Now allow a Dynamo-style sloppy quorum. A preferred replica is unavailable, so a write can be acknowledged by a temporary substitute outside the preferred set. Later the preferred replicas recover and a read reaches two of them before the hinted value arrives. It is possible for the two actual acknowledgment sets to have no common node even though the configured numbers still add to more than N. Amazon's Dynamo explanation describes sloppy quorums and hinted handoff as an availability choice. The arithmetic did not fail. We applied it to memberships it did not describe.
For a hypothetical preference set A, B and C, suppose A and B are unavailable during the write. C and temporary substitute D acknowledge version 7. Before hints propagate, A and B return and answer the read with version 6. The write set {C,D} and read set {A,B} are disjoint. Counting both against the preferred N=3 hid the extra participant D. Hinted handoff means retaining the update for later delivery to its intended replica, not making that delivery instantaneous.
To diagnose the incident, capture the preference list for the key at the time of the write and the actual nodes that acknowledged the write and read. Check outage timing, hint delivery, read repair, and version comparison. A client seeing an older value may also be reading a different region or a cache. Do not use “eventual consistency” as a substitute for finding the actual route. And R + W > N is not by itself a proof of linearizability with concurrent operations, ambiguous writes, or last-write-wins timestamps from unsynchronized clocks.
If the application needs a read of its own completed write, carry a version or token and require the read to meet it, route to an authoritative path, or refuse the read while the required freshness is unavailable. If strict quorum membership is enforced, a partition may make some operations fail instead. That is the availability tradeoff. The policy update succeeded. Why did the next read return the old rule? covers a primary commit followed by a lagging read replica. Here there may be no primary at all, and the interesting question is whether the two quorums actually intersected.
Related questions
Keep practising distributed reliability
Follow another question in this area, or search the complete library.
Get my essays on AI engineering and distributed systems by email. Subscribe to ArchCrux