Lesson 7 of 13 · 14m
R + W > N Is an Availability Dial
Quorum arithmetic promises overlap between read and write sets, but sloppy quorums, hinted handoff, and client-supplied timestamps quietly refund the guarantee.
Dynamo-style systems sell consistency as arithmetic: replicate each key to N nodes, require W acknowledgements per write and R responses per read. If R + W > N, the read set and the write set must overlap in at least one node — the reader is guaranteed to see a node that saw the write. Cassandra QUORUM is the arithmetic made concrete: with replication_factor = 3, a quorum is 2, and LOCAL_QUORUM applies the same count within one datacenter for multi-DC clusters.
The formula is true. The guarantee it implies is not.
Four places the math leaks
Sloppy quorums. The Dynamo paper and Cassandra both prefer availability to strictness: when a real replica is down, the write goes to some other live node plus a "hint" to replay when the owner returns (hinted handoff). R + W > N still holds numerically, but the read and write sets now overlap on nodes that are not the key's owners — and a hinted node may not yet have received the hint's payload. The overlap exists. The freshness does not.
Concurrent writes need a tie-breaker, and the tie-breaker is a clock. Two clients write different values to the same key at the same time; both are acknowledged by a quorum. Replicas must pick a winner deterministically or diverge forever. The standard winner is last-write-wins — compare timestamps — which imports every problem from the clocks lesson wholesale. A client 300 ms ahead "wins" against a correct client, and Jepsen's Cassandra analyses documented exactly this class of silent loss. Worse, some legacy integrations let the client supply the timestamp (USING TIMESTAMP), which means whichever client's clock is most wrong wins the arbitration.
Read repair is asynchronous. Quorum reads that find divergence fix it lazily — read repair writes the newest value back to stragglers — but the repair happens after your read answered. The window between "write committed" and "everyone repaired" is real, and R + W > N does not close it.
There is a fourth leak worth naming: deletes. A delete is a write too — a tombstone — and it races with writes the same way. A node that missed the tombstone resurrects the row on the next read repair, which is why Cassandra tombstones carry gc_grace_seconds and why finishing repair inside that window is an operational requirement, not a hygiene habit. Miss the window and deleted data walks back from the grave carrying no error with it.
What the arithmetic does buy
Under normal operation — all replicas reachable, one client writing, clocks disciplined — R + W > N gives you a strong probability of reading the acknowledged write, and it degrades gracefully: a node can fail and both reads and writes continue. That is worth real money. It is an availability mechanism. It is not a correctness mechanism, and treating it as one is how you get a postmortem titled "lost writes despite QUORUM."
If you actually need "every read observes the latest committed write," that is linearizability, and the answer is a leader, a quorum read through the leader, or a consensus layer — not a bigger R.
What to actually do
Use LOCAL_QUORUM for reads and writes in multi-DC Cassandra; QUORUM across DCs buys you WAN latency on every request for a guarantee that still leaks. Never let clients supply LWW timestamps; let the coordinating node stamp. Run repair inside gc_grace_seconds or accept that deleted rows come back. And document, per table, whether the use case can tolerate "usually fresh" — because usually-fresh is what sloppy quorums deliver on a good day.
Was this lesson helpful?
Keep reading
Related articles from the SudoSecurity blog.
What is Platform as a Service? The Sweet Spot Between "Too Easy" and "Too Much Work"
Platform as a Service sits between raw servers and fully managed software. You push code, the platform runs it. No Nginx config, no OS patches, no 3 AM server alerts. Here is what PaaS actually gives you, what it costs you in control, and how to decide if it is the right layer for your application.
The World now is Serverless and Container based
A new report from Datadog reveals that serverless computing could be entering the mainstream. This has already been the case in my world for the past few years. Results show that more than half of all organizations are using serverless on one of the three major public cloud providers: Amazon,
AWS Emulator Puts AWS on Your Laptop. Keep Your IAM Tests Off It.
AWS released AWS Emulator on November 11, a free local server that answers AWS API calls on 127.0.0.1 with per-run keys and fresh certificates.
A 257-Byte Password Is the Key: Inside the OpenSSH musl Bypass
CVE-2026-123158 lets an attacker log into a locked account on musl-based systems like Alpine by sending a password nobody set. The trigger is one number, 257, and the reason is a C library returning a single asterisk. I reproduced the exact boundary against musl 1.2.4 and read the fix.