Skip to main content

Session Guarantees

1. Executive Summary​

Session guarantees are client-centric consistency properties that constrain what a single client session can observe when interacting with a weakly consistent or eventually consistent replicated store. Unlike global models such as linearizability or sequential consistency, session guarantees do not require all clients to agree on a single real-time order—they bound per-session anomalies such as reading stale data immediately after one's own write, seeing values "go backward in time," or losing causal dependencies within a workflow.

The canonical taxonomy—read-your-writes, monotonic reads, monotonic writes, and writes-follow-reads—was articulated by Terry et al. (1994) for weakly consistent replicated data. Causal consistency can be viewed as extending session guarantees across sessions linked by communication. Production systems implement session semantics via sticky routing (same replica per session), session tokens or version cookies passed with requests, gossiped client state, or synchronous local writes with asynchronous global replication.

This chapter defines each guarantee formally and informally, explains implementation mechanisms and failure modes, relates session guarantees to eventual and causal consistency, and provides principal-level interview framing. Session guarantees are how architects deliver acceptable user experience on AP systems without paying the full cost of linearizability on every read.

2. Why This Topic Matters​

Eventually consistent systems dominate large-scale web, mobile, and multi-region deployments. Pure eventual consistency allows arbitrary temporary divergence—including anomalies that violate basic user expectations: posting a comment and not seeing it, refreshing a page and seeing an older balance, or shuffling UI state backward after navigation.

Principal architects must:

  • Match guarantees to UX invariants — "Users must see their own edits" is read-your-writes, not global linearizability.
  • Design client and gateway layers — Session tokens in cookies, gRPC metadata, or CDN keys are architecture, not afterthoughts.
  • Debug "flaky" reports — Often session stickiness lost at load balancer after deploy.
  • Negotiate with product — Session guarantees are cheaper than strong consistency but not free; stateful routing has failover implications.

Interview failures: treating read-your-writes as automatic on Cassandra/Dynamo without LOCAL_QUORUM and routing; unable to list four session guarantees; conflating session guarantees with serializability.

3. Problems Being Solved​

ProblemPure eventual consistencyWith session guarantees
Post-write read returns staleCommon on random replicaRead-your-writes prevents (within session)
Timeline "rewinds" on refreshPossibleMonotonic reads prevent
Write reordering visible to authorPossibleMonotonic writes prevent
Read-dependent write based on stale readPossibleWrites-follow-reads prevents
User distrust of AP systemHighBounded anomalies improve UX
Cost of global linearizabilityProhibitive for all readsTargeted per-session bounds

Session guarantees solve "what can one client reasonably expect during replication lag?" They do not solve global agreement, cross-user real-time visibility, or multi-key atomicity without additional mechanisms.

4. Assumptions and System Model​

Assume partial failure, asynchronous replication, and multiple replicas unless noted:

  • Sessions: A client (or browser tab, mobile app instance) participates in a session identified explicitly or implicitly (connection, token, user id + device).
  • Operations: Reads and writes on replicated objects; replication may lag arbitrarily before convergence.
  • Eventual consistency baseline: If updates stop, replicas converge—session guarantees add intermediate constraints.
  • No synchronized clocks required for basic session guarantees—implementation uses versions, tokens, or routing.

Not assumed: Global linearizability; transactional isolation across keys; automatic session guarantee without client/gateway cooperation.

Session boundary matters: Guarantees apply within a defined session. New session may observe stale state until convergence—document this for support teams.

5. Essential Terminology​

TermDefinition
SessionSequence of operations by one client context bound by an identifier or sticky route.
Read-your-writes (RYW)Session never reads a value older than one it has written.
Monotonic reads (MR)If a session reads value v of object x, later reads of x in session return ≥ v (no going backward).
Monotonic writes (MW)Writes by a session applied in program order at all replicas (no visible reordering of session writes).
Writes-follow-reads (WFR)Write in session never visible before reads in same session that informed it (causal-ish within session).
Sticky session / sticky routingRoute session's requests to replica subset that has seen session writes.
Session tokenOpaque version vector or timestamp client sends; server returns fresher than token.
Causal consistencyPreserves happens-before across all clients—stronger than combined session guarantees in general.
PRAM consistencyParallel RAM—MW + RYW equivalent in some formulations.
Consistency windowTime/data versions during which anomaly could occur without guarantees.

Mnemonic: Session guarantees = "my timeline makes sense to me"—not "everyone shares one timeline."

6. Core Mechanism​

Terry et al. (1994) taxonomy​

GuaranteeInformal constraint
Read-your-writesOwn writes visible to own subsequent reads
Monotonic readsNever read older value than previously observed in session
Monotonic writesSession's writes appear in issue order everywhere
Writes-follow-readsCausal order between reads and dependent writes in session

Implication lattice (informal): WFR ⇒ RYW in many setups; MR + MW together relate to PRAM. Causal consistency ⇒ all four for causally linked ops across sessions.

Sticky routing implementation​

Figure 1: Sticky routing sends session reads to a replica that has applied the session's writes—classic read-your-writes implementation.

Figure 2: Gateway uses session token to reject or retry stale reads—works without strict stickiness if version metadata propagates.

Guarantee interaction diagram​

Figure 3: Session guarantees form a partial order above eventual consistency; causal consistency extends across sessions.

7. Step-by-Step Walkthrough​

Scenario: Social app, eventual consistent profile store, three replicas.

StepActionWithout guaranteesWith RYW + MR
1User updates avatar (write)Ack from one replicaWrite tracked in session state
2User reloads profile (read)Random replica may show old avatarRead routed or token-checked → new avatar
3Friend views profileMay see old avatar until replicateAllowed—not session's read
4User reloads againCould theoretically see older if unluckyMR blocks regression in session

Walkthrough insight: Session guarantees are intentionally asymmetric—the author sees consistent session; viewers may lag. Product must accept or add stronger global guarantees for viewer paths.

Failure walkthrough — lost stickiness:

StepActionResult
1Deploy replaces load balancer; affinity cookie format changesStickiness lost
2User writes bioReplica B accepts
3Next read hits Replica ARYW violated—old bio shown

Mitigation: Session tokens in API body, not only cookies; version check on every read path.

8. Invariants and Guarantees​

GuaranteeTypeStatement (within session S)
Read-your-writesSafetyIf S completes write w on x, subsequent read of x in S does not return state before w
Monotonic readsSafetyReads of x in S return non-decreasing versions
Monotonic writesSafetyWrites by S appear in issue order at all replicas
Writes-follow-readsSafetyIf read r precedes write w in S, w not visible before r's value to any client
Cross-session freshnessNot guaranteedOther sessions may observe stale state
AvailabilityLivenessNot implied by session guarantees alone

Safety vs liveness: Session guarantees are safety properties on observable histories per session. Liveness (eventual convergence) comes from eventual consistency baseline.

9. Failure Scenarios​

Scenario 1: Load balancer affinity loss​

Setup: Sticky sessions only via cookie; blue/green deploy drops affinity table.

Effect: RYW violations; user reports "my save didn't work."

Mitigation: Token in application layer; dual-write affinity during migration; synthetic canaries post-deploy.

Scenario 2: Multi-region without session state​

Setup: User writes in us-east, reads via eu-west CDN without token forwarding.

Effect: Session guarantees broken across regions.

Mitigation: Global session store for tokens; geo-DNS with user home region; accept cross-region staleness explicitly.

Scenario 3: Mobile offline queue​

Setup: Writes queued locally; reads from server without merging local queue.

Effect: RYW violated—server read ignores pending local write.

Mitigation: Read path merges local + remote; CRDT or explicit pending-write overlay.

Scenario 4: Microservices break session scope​

Setup: API gateway provides RYW on profile service; feed service reads different replica set without token.

Effect: End-to-end UX violates user expectation though one service is "correct."

Mitigation: Propagate session context (W3C trace + version headers) across services.

Scenario 5: Clock-based session tokens​

Setup: Token = wall-clock timestamp; skew causes false stale or acceptance of old data.

Effect: MR or RYW violations under clock drift.

Mitigation: Logical versions, vector clocks, or hybrid logical clocks—not raw NTP for correctness.

10. Performance Characteristics​

MechanismLatency impactThroughput impact
Sticky routingLow if replica localHot spots on popular users' replica
Session token + retryExtra RTT on stale readRetry storms if replicas lag
Sync local write (RYW)Write waits for designated replicaLimits write path flexibility
Central session version storeLookup RTT per readBottleneck if not sharded

Qualitative rule: Session guarantees are cheaper than linearizable reads but may concentrate load on sticky replicas. Measure tail latency for power users with hot sessions.

CDN caveat: Edge caches break MR unless cache keys include session token or private cache per user.

11. Scalability Limits​

  • Sticky hot spots: Celebrity session pins one replica—uneven load.
  • Token store: Global session metadata must shard by session id.
  • Replica memory: Tracking per-session write set does not scale unbounded—TTL and scope limits.
  • Stateless gateway ideal: Pure stickiness conflicts with elastic scale-out—prefer version tokens.

When session guarantees strain scale: Viral event with all users writing and reading—everyone needs RYW; consider regional write leaders with local session scope.

12. Operational Considerations​

  • Deploy runbooks: Verify affinity and token compatibility across releases.
  • Monitor RYW SLO: Synthetic client writes then reads; alert on violation.
  • Support playbooks: "Log out and back in" resets session—document side effects.
  • Cache-Control headers: private for user-specific RYW paths.
  • Incident correlation: Affinity loss often follows LB or K8s ingress changes.

13. Security Considerations​

  • Session token forgery: Attacker inflates version to force expensive read paths or bypass caches—sign tokens.
  • Session fixation: Binding session to attacker-controlled replica route—validate server-side session id.
  • Information leakage: Monotonic version in token reveals write activity—encrypt or use opaque server-side state.
  • Cross-tenant stickiness bug: Wrong affinity exposes another tenant's RYW path—critical isolation review.

Session guarantees interact with auth session (login)—keep replication consistency session separate or unified deliberately.

14. Cost Considerations​

  • Infrastructure: Session store, stickier load balancers, reduced CDN cache hit rate for personalized content.
  • Engineering: Gateway logic, cross-service header propagation, testing matrices.
  • Opportunity cost: Cannot cache aggressively at edge for personalized reads.
  • Savings vs linearizability: Avoid global quorum read on every request—often 10×+ latency reduction in principle; measure your stack.

Decision criterion: Pay for session guarantees when author-facing UX requires freshness; use pure eventual for aggregate metrics and public caches.

15. Production Implementations​

Amazon DynamoDB​

ConsistentRead on same item after write in same region provides read-your-writes for that item—scoped product guarantee. Global tables add replication lag caveats—check current AWS documentation.

Apache Cassandra​

LOCAL_QUORUM with token-aware routing to write coordinator and replica set supports practical RYW for a session when clients reuse policy and datacenter context—implementation pattern, not automatic.

CouchDB / Cloudant​

User database per user naturally provides RYW for that database—data model choice as guarantee.

Facebook TAO (described in literature)​

Cache invalidation and sticky patterns for social graph—engineering blog details; verify against published architecture.

CDN + origin​

Vary: Cookie or edge side includes for personalized fragments—session-aware caching implementation choice.

Distinction: Product docs state scope (per item, per region, per table)—architects must not over-generalize.

16. Alternatives and Tradeoffs​

ApproachGuaranteesCostUse when
Session guaranteesPer-session boundsMediumAP stores, user-authored content
Linearizable readsGlobal real-timeHighFinancial balances, inventory
Causal consistencyCross-session happens-beforeMedium-highCollaborative editing, comments
Client-side CRDTLocal merge semanticsEngineering complexityOffline-first apps
Strong leader readsNear-linearizable per keyLeader RTTWhen simplicity beats stickiness

Tradeoff: Session guarantees do not help viewers see author's latest content immediately—need push, polling, or stronger model.

17. Common Misconceptions​

MisconceptionReality
"Eventual consistency includes RYW"Pure eventual allows any stale read—RYW must be added.
"Sticky sessions alone guarantee RYW"Replica may not have write if stickiness wrong replica or async lag.
"RYW = linearizability"RYW is per-session; others may see stale; no real-time global order.
"JWT auth gives session guarantees"Auth ≠ replication session; separate mechanisms.
"QUORUM read gives RYW"Quorum may still be stale without versioning or routing to write replica.
"MR implies RYW"Related but distinct—formal definitions differ; both often implemented together.

18. Principal Architect Perspective​

  1. End-to-end session — Trace from browser through API mesh to database; weakest link wins.
  2. Explicit session id — Prefer application-level token over opaque LB cookie only.
  3. Test on deploy — RYW canaries in CI/CD pipeline.
  4. Product communication — "Your edits appear instantly to you; others may see delay" — accurate.
  5. Upgrade path — Session guarantees → causal → linearizable per entity as business demands.

Interview signal: explaining how to implement RYW without linearizability separates principal candidates.

19. Architecture Review Exercise​

Scenario: Multi-region comments API. Writes go to local region (eventual global replication). Reads through geo-routed load balancer with no session token. Users complain comments "disappear" after post.

Review prompts:

  1. Which session guarantee is violated?
  2. Design minimal fix preserving AP availability.
  3. Cost of linearizable reads for authors only?
  4. Should viewers have MR on comment thread?
  5. Mobile offline—additional guarantees needed?

Expected findings: Missing RYW; add session token or sticky write coordinator; consider causal for thread ordering.

20. Whiteboard Explanation​

90-second version:

"Session guarantees are per-client promises on weakly consistent systems. Terry et al. defined four: read-your-writes—you never see stale data relative to your own writes; monotonic reads—your view never goes backward; monotonic writes—your writes appear in order; writes-follow-reads—causal order within your session. They don't make the whole system linearizable—other users can still see old data. You implement them with sticky routing to a replica that has your writes, or session tokens that force reads at least as fresh as your last write. They're the standard way to make eventual consistency usable for logged-in users without quorum reads on every request. Failures happen when load balancers lose affinity after deploy or CDNs cache personalized pages without private cache keys."

21. Interview Questions​

  1. Name four session guarantees.

    • Signals: RYW, MR, MW, WFR; Terry et al.
  2. Define read-your-writes.

    • Signals: Own subsequent reads see own writes; session scoped.
  3. How implement RYW without linearizability?

    • Signals: Sticky replica, version token, local write ack + route.
  4. RYW vs linearizability?

    • Signals: Per-session vs global real-time order.
  5. What breaks RYW on deploy?

    • Signals: Lost stickiness, cookie change, new replica set.
  6. Monotonic reads vs RYW?

    • Signals: MR prevents regression; RYW about own writes specifically.
  7. Session guarantees on CDN?

    • Signals: Private cache, Vary headers, edge cannot serve stale personalized.
  8. Cassandra and RYW?

    • Signals: LOCAL_QUORUM, token-aware policy—not default ONE.
  9. Cross-service session propagation?

    • Signals: Headers, gateway, shared session version store.
  10. MR without RYW possible?

    • Signals: Theoretically distinct anomalies; discuss formal definitions.
  11. Writes-follow-reads use case?

    • Signals: Read balance then withdraw; must not act on stale balance.
  12. Cost of sticky sessions at scale?

    • Signals: Hot spots; prefer stateless tokens.
  13. Mobile offline and RYW?

    • Signals: Merge local queue with server reads.
  14. Test session guarantees?

    • Signals: Write-read loop canary, Jepsen session tests.

22. Interview Follow-Ups​

  1. Design comment system guarantees for authors vs readers.

    • Signals: RYW for author; eventual for global feed; push notifications.
  2. Migrate from stickiness to tokens—steps?

    • Signals: Dual support, gradual rollout, monitor violations.
  3. Session guarantees + CRDTs?

    • Signals: Local merge satisfies strong local semantics; replication separate.
  4. GDPR delete and session tokens?

    • Signals: Invalidate tokens; session state TTL.
  5. Executive wants Instagram-level freshness globally—response?

    • Signals: Decompose; session vs global; fanout, caches, PACELC.

22A. Production Low-Level Design (Interview + Game Day)​

Session token + sticky routing for RYW/MR without full linearizability. Production LLD and Game Day Standard.

Session model​

GuaranteeMechanismStorage
Read-your-writesSticky region + version cookiesession_id → region, min_version
Monotonic readsPer-session last_seen_versionEdge cache bypass if stale
Writes-not-lostVersioned PUT with client tokenDynamo-style vector optional

Step-by-step flow:

StepGuaranteeFailure if skipped
1–2Write durableLost update
3Session state updatedStale self-read
4–6RYW enforcedUser sees old prefs

SLO​

RYW violation rate = 0 for authenticated sessions; p99 read latency within EL budget.


22B. Game Day Playbooks​

#DrillInjectDetectMitigateVerify
GD-1Sticky missRoute to wrong regionRYW canary failsFix affinity / sync readUser sees own write
GD-2Cache hides writeLong CDN TTLSupport ticketsTTL ≤ lag SLORYW restored
GD-3Token expiry mid-sessionInvalidate session store401 stormGraceful re-bindNo silent stale reads

GD-1 — Read-your-writes violation​

23. Strong Answer Example​

Question: "We use eventual consistency. Do we need session guarantees?"

Answer this as a 45-minute design discussion using the PRACTICE framework. Below is how a strong student sounds aloud—yes for author paths, not "eventual will feel fine," and not "that means linearizability."

PRACTICE interview answer map for session guarantees on eventual consistency

Figure A: PRACTICE map — Problem → Requirements → Assumptions → Capacity → Topology → Invariants → Constraints → Evolution.


Student interview script (PRACTICE)​

P — Problem framing​

"We're on an eventually consistent store—replicas lag. Pure eventual allows a user to write, get ACK, then read a lagging replica and miss their own write. That feels like data loss, even though the system is 'correct' under EC.

Session guarantees (Terry et al.) fix per-client anomalies without buying global linearizability.

Short answer: For logged-in author paths—yes, at least read-your-writes and usually monotonic reads. For public/viewer paths—often no, stay pure eventual. For metrics/aggregates—usually no."

R — Requirements​

PathNeed session guarantees?Why
Edit profile / settings / comment then reloadYes — RYW (+ MR)Own write must be visible
Refresh feed of own postsYes — MRUI must not rewind
Friend views your profileOptionalStale OK until converge
Analytics dashboardsNoAggregates tolerate lag
Withdraw after reading balanceWFR / strongerDon't act on stale read

"I'll ask: which APIs are author vs viewer? I'll assume a typical web/mobile product with both."

A — Assumptions (state aloud)​

AssumptionWhy it matters
Multi-replica / multi-region EC storeRandom read can miss recent write
Client has a session (cookie, device, connection)Scope of guarantees
Sticky LB alone is fragileDeploys break affinity
Auth session ≠ replication sessionJWT doesn't give RYW
Not linearizabilityOthers may still see stale

"Session guarantees are client-centric safety on top of eventual liveness (convergence)."

C — Capacity (cost of the fix)​

Quorum / linearizable read on every GET → expensive globally
Session token check / sticky subset → cheaper; hot sticky users possible
Synthetic write→read probes → low QPS, high signal
CDN personalized pages → must not break MR (private cache / Vary)

"I'd rather pay for tokens on author APIs than strong consistency on every public read."

T — Topology (draw this)​

Why session guarantees are needed under eventual consistency

Figure B: Without guarantees—write ACK then stale read. With token/sticky—author sees own write; viewers may still lag.

Four session guarantees and how to implement

Figure C: RYW, MR, MW, WFR — implement with version tokens (prefer) over fragile sticky cookies; propagate across services.

GuaranteeMeaning (one line)Default for author UX?
Read-your-writes (RYW)After my write, my reads see itYes
Monotonic reads (MR)My view never goes backwardYes
Monotonic writes (MW)My writes appear in orderOften yes
Writes-follow-reads (WFR)Writes based on my reads respect those readsWhen read→act

Implementation I'd recommend:

  1. Primary: Session version token (last write version / vector) returned on write; gateway enforces reads ≥ token (retry or route to coordinator).
  2. Secondary: Sticky routing to write's replica set—helpful but not sufficient alone across deploys.
  3. Propagate token in internal headers so microservices don't break the chain.
  4. CDN: private cache / Vary for personalized fragments—or bypass CDN for author GETs.
  5. Document per API in the catalog: RYW/MR required or not.

I — Invariants (safety)​

"Non-negotiable when we say 'we need session guarantees':

  1. Scope = one session—not all users worldwide.
  2. RYW on author read-after-write paths—no 'disappearing' own edit.
  3. MR on author refresh—no UI rewind.
  4. Not a substitute for CP on money/security where global freshness matters.
  5. Stickiness loss must not silently drop RYW—tokens survive LB resets."

C — Constraints (second C)​

ConstraintDesign response
Blue/green loses LB affinityPrefer tokens over cookie stickiness
Multi-region geo-DNSHome region + token; accept cross-region viewer lag
Mobile offlineLocal queue + merge; RYW local first
Hot sticky celebrityCap stickiness; token-based routing
"We have JWT"Separate auth from replication session state

E — Evolution (prove it)​

Phased delivery:

PhaseDeliverable
M1Classify APIs: author vs viewer vs aggregate
M2Session token on writes; enforce on author reads
M3Propagate token across services; fix CDN
M4Synthetic write→read canaries; alert on RYW miss
M5Chaos: LB reset / region failover mid-session

Failure modes:

FailureMitigation
Post → refresh → old contentRYW token / sticky + verify
Deploy "fixes" stickinessToken survives
Service B ignores tokenHeader contract + tests
CDN caches personalized HTMLPrivate cache / bypass

Observability: RYW miss rate (canary), token retry count, sticky affinity loss events, p99 author read latency.


Closing line (interview)​

"So: eventual consistency alone is not enough for logged-in author UX. I'd add session guarantees—at least read-your-writes and monotonic reads—via a version token at the gateway, not fragile LB cookies alone. Viewers can stay pure eventual. That's not linearizability: other users may still lag. I'd document it per API and probe write→read in prod."

Scoring signals​

StrongWeak / red flag
Yes for author paths; optional for viewers"No, eventual is fine" / "just wait"
Names RYW / MR (Terry)Can't name guarantees
Token > sticky-only"Sticky sessions solve it"
Not linearizabilityConflates RYW with global strong consistency
Cross-service propagationStops at one service
Canary write→readNo test story

Compact outline (if time-boxed to 2 minutes)​

"Yes for author read-after-write. Pure EC can hide your own write on a lagging replica. Need RYW + MR. Implement with session version token at gateway; sticky helps but deploys break it. Propagate headers. Viewers stay eventual. Not linearizability. Write→read canaries."

24. Weak Answer Example​

Question: "We use eventual consistency. Do we need session guarantees?"

"No, eventual consistency means it will be consistent eventually, so users just need to wait."

Why weak / red flags: Ignores UX requirements and author-facing anomalies (missing own write); treats eventual as "feels consistent"; no RYW/MR, no token design, no per-API contract, no monitoring—standard practice on AP systems is to add session guarantees for logged-in paths.

25. Hands-On Exercise​

Exercise: Session guarantee validation

  1. Deploy three-node replica set (or use local Cassandra/Dynamo emulator).
  2. Write from client A; immediately read without stickiness—record stale rate.
  3. Add sticky routing or version token; remeasure.
  4. Simulate LB reset mid-session; observe violations.
  5. Write ADR: which APIs require RYW/MR and implementation choice.

Success criteria: Demonstrated RYW violation and fix; documented session token format.

26. Knowledge Check​

  1. Four session guarantees? (RYW, MR, MW, WFR.)
  2. Terry et al. year? (1994.)
  3. RYW scope? (Single session—not global.)
  4. Sticky routing pitfall? (Deploy affinity loss, wrong replica.)
  5. RYW vs consistent read in DynamoDB? (Product-scoped strong read per item—related but not identical to session model.)
  6. MR prevents what UX bug? (Timeline going backward on refresh.)

27. Flashcards​

#FrontBack
1Read-your-writesSession reads never before own writes.
2Monotonic readsSession never reads older value than before.
3Monotonic writesSession writes visible in issue order.
4Writes-follow-readsDependent write not visible before causally prior read.
5Terry et al. (1994)Canonical session guarantees paper.
6Sticky routingAffinity routes session to replica with writes.
7Session tokenVersion cookie forcing minimum freshness on read.
8vs linearizabilitySession-local, not global real-time.
9vs eventualSession guarantees constrain interim anomalies.
10PRAM consistencyOften MW + RYW combined.
11CDN + RYWPrivate cache or no edge cache for personalized reads.
12Cross-regionToken must propagate or RYW breaks.

28. Cheat Sheet​

SESSION GUARANTEES (Terry et al.)
RYW - see own writes
MR - no read goes backward
MW - writes appear in order
WFR - reads before dependent writes

IMPLEMENT
- Sticky replica / coordinator
- Session version token + retry
- ConsistentRead (product-scoped)
- Propagate context across services

FAILURES
- LB affinity loss on deploy
- CDN public cache
- Cross-region without token
- Clock-based tokens

NOT PROVIDED
- Global freshness for other users
- Linearizability
- Multi-key transactions

30. References​

Primary sources​

Engineering and production​

  • DeCandia, G., et al. (2007). "Dynamo: Amazon's Highly Available Key-value Store." SOSP — sloppy quorum, eventual model context for session patterns.
  • Martin Kleppmann, Designing Data-Intensive Applications (O'Reilly) — Ch. 7 read-your-writes and monotonic reads.
  • AWS DynamoDB documentation — ConsistentRead semantics (verify current docs).

Distinction​

Claim typeSource
Four session guaranteesTerry et al. (1994)
Implementation patternsEngineering practice; validate per product
Cassandra RYW patternsDataStax / Apache docs—driver and CL dependent