# R plus W greater than N is the arithmetic that decides your consistency

DevFeed: [R plus W greater than N is the arithmetic that decides your consistency](<https://devfeed.tech/articles/r-plus-w-greater-than-n-is-the-arithmetic-that-decides-your-consistency-112595.md>)

Original publisher: [Read original article](<https://ankit-rana.com/logs/71-quorum-arithmetic-r-plus-w/>)

Author: hello@ankit-rana.com

Published: 2026-11-02T00:00:00Z

Content type: article

Language: en

Sources: [Ankit Rana | Mechanical Sympathy](<https://devfeed.tech/sources/ankit-rana-mechanical-sympathy.md>)

Topics: [consistency](<https://devfeed.tech/topics/consistency.md>), [database-consistency](<https://devfeed.tech/topics/database-consistency.md>)

Tags: [3](<https://devfeed.tech/tags/3.md>), [availability](<https://devfeed.tech/tags/availability.md>), [balance](<https://devfeed.tech/tags/balance.md>), [cassandra](<https://devfeed.tech/tags/cassandra.md>), [concurrently](<https://devfeed.tech/tags/concurrently.md>), [conflict-resolution](<https://devfeed.tech/tags/conflict-resolution.md>), [consensus](<https://devfeed.tech/tags/consensus.md>), [consistency](<https://devfeed.tech/tags/consistency.md>), [cost](<https://devfeed.tech/tags/cost.md>), [dashboard](<https://devfeed.tech/tags/dashboard.md>), [distributed-systems](<https://devfeed.tech/tags/distributed-systems.md>), [durability](<https://devfeed.tech/tags/durability.md>), [dynamo](<https://devfeed.tech/tags/dynamo.md>), [inequality](<https://devfeed.tech/tags/inequality.md>), [latency](<https://devfeed.tech/tags/latency.md>), [overlap](<https://devfeed.tech/tags/overlap.md>), [quorum](<https://devfeed.tech/tags/quorum.md>), [reading](<https://devfeed.tech/tags/reading.md>), [replica](<https://devfeed.tech/tags/replica.md>), [replication](<https://devfeed.tech/tags/replication.md>), [store](<https://devfeed.tech/tags/store.md>), [write](<https://devfeed.tech/tags/write.md>), [writing](<https://devfeed.tech/tags/writing.md>)

## AI overview

For N replicas, reads of R replicas and writes acknowledged by W replicas guarantee overlap only when R + W > N; when the sum equals N, a read can miss an acknowledged write. Increasing R or W trades latency and availability for stronger recency coverage: the coordinator waits for the Rth or Wth response, and requiring all replicas can block writes when one is unavailable. This overlap guarantee does not resolve concurrent writes, which may be settled by last-write-wins timestamps; conditional writes or consensus provide stronger conflict handling at higher cost. Sloppy quorums can satisfy W on nodes outside the key's replica set, weakening the guarantee until hinted data arrives. Check each store's N, R and W, its concurrent-write behavior, and whether it uses sloppy quorums.

## Source excerpt

In a replicated store with N copies, reading from R replicas and writing to W replicas guarantees a read sees the latest write only when R plus W exceeds N, because that forces the two sets to share at least one replica. The inequality is the entire guarantee, and it says nothing about which value wins when two writes happen concurrently, so overlap gives you recency and not conflict resolution. Tuning R and W is choosing where to spend latency, since the coordinator waits for the slowest replica in whichever set is larger.