Distributed Consistency Models: A Practical Guide to Choosing the Right Guarantee
This article categorizes distributed consistency models into data-level and session-level guarantees, provides a seven-question selection methodology, maps consistency requirements to common data categories like payments and inventory, walks through four real-world scenarios, details implementation costs, and highlights common pitfalls such as cross-device read-your-writes and unbounded eventual consistency convergence.
Reading font

1. Data-Level vs Session-Level Dimensions
The article distinguishes two orthogonal dimensions of consistency guarantees:
Data-level models (global guarantees for all clients): Linearizability, Sequential Consistency, Causal Consistency, Eventual Consistency.
Session-level guarantees (per-client session): Read Your Writes (RYW), Monotonic Reads (MR). These can be layered on any data-level model.
Transaction-level (multi-object, multi-operation): Serializable, Snapshot Isolation, Read Committed — an independent dimension.
RYW and MR are not weaker alternatives to causal consistency; they are cheap patches layered atop eventual or causal consistency. The most common production configuration is Eventual Consistency + RYW + Monotonic Reads (e.g., DynamoDB Session Consistency, Cosmos DB Session Level), which eliminates the two most user-visible anomalies while preserving availability and low latency.
Common misconception: Vendor "strong consistency" often means only causal consistency or RYW, not linearizability. CAP's C strictly means linearizability, but many "CP systems" actually provide causal consistency. Selection must verify the exact model.
Precise Definitions
Linearizability: Each operation takes effect atomically at some real-time instant; all clients see the same order matching real-time order. Intuition: single-node single variable.
Sequential Consistency: All operations have a global total order; each client's operations appear in program order, but the global order need not match real time. Intuition: all clients see the same "script" but the script may lag reality.
Causal Consistency: Causally related operations (read-after-write, write-after-write, transitive causality) appear in the same order on all clients; concurrent operations may appear in different orders. Intuition: causal chains cannot break; unrelated ops can reorder.
Eventual Consistency: With no new writes, all replicas eventually converge. No time bound. Intuition: eventually consistent, but "eventually" could be milliseconds or hours.
Read Your Writes (RYW): A client always sees its own prior writes. Does not guarantee seeing others' writes.
Monotonic Reads (MR): A client never reads a value older than one it has already read. Does not guarantee seeing the latest write, only "no rollback to older versions".
2. Selection Methodology: Seven Questions per Read/Write Path
Do not choose consistency by "system"; choose by "data category × read/write path". For each path, check:
Business consequence of reading a stale value? User confusion (seconds tolerable), lost revenue (milliseconds tolerable), or fund misallocation/overselling/safety incident (intolerable)?
Consequence of lost/duplicate/reordered writes? Duplicate charges, duplicate coupon issuance, message misordering — which is catastrophic?
Read-modify-write dependencies? If present, the read must see at least the version it depends on, else decisions are based on stale data.
Cross-object atomicity needed? Single-object consistency cannot solve cross-object transactions; requires transaction-level isolation.
User immediately re-reads own write? This is the sole criterion for RYW.
Same user reads from multiple replicas/regions/devices? Cross-device RYW cannot rely on session stickiness; requires server-side version tokens.
Latency budget and availability requirement? Linearizability often implies cross-region RTT or sacrificing partition availability — is it worth it?
Selection heuristic: Use "business consequence" to set the data-level model ceiling, then "user perception" to decide whether to layer session guarantees, finally "latency/availability budget" to adjust downward.
3. Read/Write Path Mapping Table (by Data Category)
The table below separates write-path and read-path requirements because they often differ. The correct reading: find your data category, look at both columns, take the stronger of the two as the design target for that path — because a read guarantee cannot exceed what the write path actually provides.
Data Category / Operation | Write Path Minimum | Read Path Minimum | Rationale
--------------------------|--------------------|-------------------|----------
Account balance, debit, transfer | Linearizability or Serializable | Linearizability | No overdraft, no decisions on stale balance
Inventory decrement, quota | Linearizability / CAS | Linearizability (at least no stale inventory) | Overselling is catastrophic
Coupon/entitlement redemption | Linearizability + idempotency key | Linearizability | Duplicate redemption causes financial loss
Idempotency deduplication table | Linearizability | Linearizability | Deduplication itself must be strongly consistent
Distributed lock, leader election, lease | Linearizability | Linearizability | Foundation for mutual exclusion and split-brain prevention
Config center, Feature Flag | Sequential Consistency (total order) | Linearizability or versioned Monotonic Reads | Config error causes site-wide outage
Permissions, ACL, key status | Linearizability | Linearizability | Security boundaries cannot have windows
User profile (nickname/avatar) | Causal Consistency or RYW | RYW + Monotonic Reads | User must see own edit, but cannot revert to old avatar
Shopping cart | RYW | RYW + Monotonic Reads | Add-to-cart must be visible immediately
Order creation | Idempotent + Linearizability (unique order ID) | RYW + Monotonic Reads | See order immediately after placement
Order status query | — | Monotonic Reads (at least no rollback from paid to unpaid) | Status regression triggers support disasters
Messages/comments/replies | Causal Consistency (reply after parent) | Causal Consistency or Monotonic Reads | Conversation causal chain must not break
Likes, views, online count | Eventual Consistency + CRDT/counter | Eventual Consistency | Short-term deviation has no business impact
Feed / timeline | Eventual Consistency | Monotonic Reads or Eventual Consistency | Personalized, tolerates delay
Search index | Eventual Consistency (seconds) | Eventual Consistency | Missing new content temporarily acceptable
Recommendation features | Eventual Consistency | Eventual Consistency | Model itself is noisy
Audit log | Sequential Consistency (append-only, total order) | Sequential Consistency | Compliance requires immutability and replayability
Event sourcing event stream | Sequential Consistency per aggregate root | Causal Consistency | Replay must preserve order
Cross-region user session | RYW (server-side version token) | Monotonic Reads | Prevent "time travel" to stale state
Distributed counter (exact) | Linearizability | Linearizability | Exact counting cannot lose updates
Notifications / in-app messages | At-least-once + idempotent | Monotonic Reads | Duplicates dedupable, loss unacceptable
Cache layer | Cache invalidation needs Causal Consistency | Eventual Consistency acceptable, but prevent stampede/penetration | Cache-source dual-write consistency is separate issue
Cross-service Saga compensation | Each local transaction Linearizable + compensation idempotent | Causal Consistency (read prior step results) | Irreversible compensation cannot rely solely on Saga4. Four Typical Scenarios: Full Read/Write Path Breakdown
Scenario A: E-Commerce Ordering Flow
Same ordering chain requires different consistency levels per step:
Step | Operation | Consistency Requirement | Reason
-----|-----------|-------------------------|-------
1 | Read product detail/price | Eventual Consistency | Seconds delay acceptable; price finalized at checkout
2 | Read inventory | Linearizability (or read reserved inventory) | Stale inventory leads to post-order stockout
3 | Decrement inventory | Linearizability / CAS | No overselling
4 | Create order | Idempotent + Linearizability (unique order ID) | Prevent duplicate orders
5 | Write order details | Causal Consistency (order before details visible) | Avoid "details exist but order missing"
6 | Read "my orders" | RYW + Monotonic Reads | See order immediately; status must not regress
7 | Payment debit | Linearizability / Serializable | Money
8 | Send order notification | At-least-once + idempotent | Duplicates ok, loss not
9 | Update sales statistics | Eventual Consistency | Statistical deviation harmlessKey insight: Inventory and payment need linearizability; product detail and sales stats need only eventual consistency; order query needs RYW+MR. Uniform consistency across the whole system either over-engineers (global linearizability kills availability/latency) or under-engineers (global eventual consistency causes overselling).
Scenario B: Social Comments
Step | Operation | Consistency Requirement
-----|-----------|------------------------
Post comment | Write | Causal Consistency (comment after parent post)
Reply to comment | Write | Causal Consistency (reply after parent comment)
Read comment list | Read | Causal Consistency or Monotonic Reads (cannot see reply before parent)
Like count | Read/Write | Eventual Consistency + CRDT
Comment notification | Write | At-least-once + idempotent
Delete comment | Write | Causal Consistency (delete after create, cascade visible)Core point: Causal consistency is mandatory because "reply appearing before original" is user-visible absurdity. Like counts need none of that.
Scenario C: User Profile (Multi-Device)
Operation | Consistency Requirement | Implementation Note
----------|-------------------------|------------------
Change nickname (mobile) | RYW | Write returns version token
View own profile (mobile) | RYW + Monotonic Reads | Read with token; cannot rely on session stickiness
View own profile (PC) | RYW + Monotonic Reads | <strong>Cross-device RYW must use server-side version tokens; session stickiness fails</strong>
View other's profile | Eventual Consistency | Seconds delay unnoticeable
Change permission/role | Linearizability | Different level from profile updatesCore point: Teams often label "user profile" as eventual consistency, causing users to not see their own edits or see stale avatars on other devices. Correct approach: split "read own profile" (RYW+MR) and "read other's profile" (eventual).
Scenario D: Config Center
Operation | Consistency Requirement | Reason
----------|-------------------------|-------
Write config | Sequential Consistency (total order) | Config changes need global unified order for rollback
Read config | Linearizability or versioned Monotonic Reads | Must not read config older than last read
Push changes | At-least-once + version + idempotent | Duplicate push harmless; missed push fatal
Rollback | Sequential Consistency | Rollback must order after original change
Config audit | Sequential Consistency | ComplianceCore point: Config centers are "read-heavy, write-light but reads must be strong". Using eventual consistency for config is an accident factory: two instances reading different configs causes behavioral divergence.
5. Implementation Means and Costs per Guarantee
Target Guarantee | Typical Implementation | Cost
----------------|----------------------|------
Linearizability | Raft/Paxos consensus, single-leader sync replication, distributed locks, CAS, single-partition transactions | Cross-region RTT, partition sacrifices availability (CP), write throughput limited by single leader
Sequential Consistency | Single leader + total-order log, single-partition serial writes | Single-leader bottleneck; failover window unwriteable
Causal Consistency | Vector clocks, Hybrid Logical Clocks (HLC), causal dependency tracking, session causal tokens | Metadata overhead, cross-partition causal tracking complex, GC of causal history hard
Read Your Writes | Session stickiness (single device), read-from-primary after write, <strong>server-side version tokens</strong> (cross-device preferred) | Reading primary overloads primary; stickiness breaks on scale/failover; tokens need storage and propagation
Monotonic Reads | Session pinned replica, replica version tracking, monotonic read tokens (record max version seen) | Replica failover requires renegotiation; cross-region may be forced to read nearer but older replica
Eventual Consistency | Async replication, Gossip, CRDT, anti-entropy repair | Convergence time unbounded, conflict resolution needs business rules, reads may return stale values
Serializable | 2PC, Calvin, deterministic transactions, single-partition serial | Coordinator single point, long-transaction locks, cross-region latency
Snapshot Isolation | MVCC | Write skew requires application-level handlingCost ordering (approximate): Linearizability > Serializable > Sequential Consistency > Causal Consistency > RYW/MR > Eventual Consistency. RYW and MR are the highest ROI tiers — they eliminate the most user-perceived anomalies with minimal implementation cost (a version token or sticky routing).
6. Common Pitfalls
Treating "read from primary" as universal RYW. Reading primary guarantees RYW but overloads the primary under high concurrency. Correct pattern: "short-window read-from-primary after write + version token fallback" or pure token-based.
Using session stickiness for cross-device RYW. Phone writes, PC reads — stickiness is useless. Cross-device RYW requires server-side version tokens (write returns version, read presents it, replica waits or forwards if version not yet present).
Monotonic Reads broken on replica switch. Client moves from replica A to B; if B is older, client "goes backward". Must record "max version seen" and verify on switch.
Using Causal Consistency as Linearizability. Causal does not order concurrent ops nor guarantee latest write. Using it for inventory decrement causes overselling.
Ignoring cross-service causal propagation. Service A writes, calls Service B, B reads — causal chain crosses service boundary. Must propagate causal tokens (separate from trace context) across services.
Eventual Consistency lacks convergence SLO. "Eventually" could be 10ms or 10 hours. Every eventual-consistency path must define a convergence SLO (e.g., p99 < 2s), otherwise unverifiable.
Contradictory consistency on same data across paths. Write path eventual, read path assumes linearizable — read guarantee cannot exceed write guarantee; otherwise it's an illusion.
About this article
For attribution, corrections or content rights, contact