vishal patel
LearningAdvancedUpdated 2026-09-23

Consistency Models

From linearizable to eventual — what each guarantee means for users, and practical models like read-your-writes and monotonic reads.

consistencylinearizabilityeventual-consistency

The spectrum

diagram
ModelGuaranteeUser-visible example
LinearizableBehaves like a single copy; reads see the latest completed writeBank balance after a transfer
CausalEffects are seen after their causesA reply is never visible before its question
Read-your-writesYou always see your own updatesSave an entry, refresh, see the change
Monotonic readsYou never go back in timeA list doesn't "un-publish" on refresh
EventualReplicas converge if writes stopLike counts, search index, CDN

Practical techniques

  • Read-your-writes: read from the primary for N seconds after a user writes, or pass a version/timestamp token and read from a replica only if it's caught up.
  • Monotonic reads: pin a user's session to one replica.
  • Causal: MongoDB causally-consistent sessions; vector clocks or Lamport timestamps in custom systems.
  • Make eventual consistency visible: "Publishing… (usually under a minute)" is better than silent staleness.

Cheatsheets

The whole topic on one page. Click to open full screen.

Sources & further learning

Videos, courses, docs and books I recommend for this topic.

Related topics