Knowledge Guide
HomeSystem DesignMental Models & Systems Thinking

The Consistency Spectrum — Linearizable to Eventual (CAP/PACELC lens)

Consistency isn't yes/no — it's a dial

People say a system is "consistent" or "not," but consistency is a spectrum of guarantees, each trading correctness for coordination cost, latency, and availability. Knowing where on the dial your data needs to sit — per use case, not per system — is a core systems-design judgment.

A spectrum from Linearizable (strong, high coordination, CP) through Causal to Eventual (weak, high availability, AP), with example use cases
A spectrum from Linearizable (strong, high coordination, CP) through Causal to Eventual (weak, high availability, AP), with example use cases

The levels, strongest to weakest

CAP / PACELC as the lens

CAP: during a network partition, you must choose Consistency or Availability — not both. PACELC adds the everyday case: else (no partition), you still trade Latency vs Consistency.

So the design question is: "for this data, what's the cost of a stale or out-of-order read?" A wrong bank balance is unacceptable (linearizable); a like count off by 3 for a second is fine (eventual). The replication-lag anomalies (read-your-writes, monotonic reads) are exactly what weak consistency feels like — and the fixes (session pinning) are how you buy back just enough.

Takeaways


Re-authored for this guide; spectrum diagram hand-authored as SVG. Follows DDIA ch. 9, Abadi's PACELC, and Jepsen's consistency hierarchy. See also: CAP Theorem, PACELC, Replication Lag & Failover, Quorum.

🤖 Don't fully get this? Learn it with Claude

Stuck on The Consistency Spectrum — Linearizable to Eventual (CAP/PACELC lens)? Open Claude, copy a block below, and it'll teach you this exact concept — visually and interactively.

🎨 Explain it visually

Build the mental picture, not memorization.

I just read a lesson on **The Consistency Spectrum — Linearizable to Eventual (CAP/PACELC lens)** (System Design) and want to truly understand it. Explain The Consistency Spectrum — Linearizable to Eventual (CAP/PACELC lens) from first principles using ONE vivid real-world analogy and a visual mental model — draw it as ASCII art or a clear step-by-step diagram — with a concrete example using real numbers. Then ask me one question to check I got the mental picture, and wait for my reply. If you're unsure or a claim isn't standard, say so and reason from first principles instead of guessing.
🤔 Walk me through it (interactive)

Socratic — adapts to where you're stuck.

Teach me **The Consistency Spectrum — Linearizable to Eventual (CAP/PACELC lens)** interactively. Ask me ONE guiding question at a time, wait for my answer, and adapt to my confusion — build the idea with me step by step instead of explaining it all at once. If you're unsure or a claim isn't standard, say so and reason from first principles instead of guessing.
🧪 Quiz me & fix my gaps

Active recall exposes what you missed.

Quiz me on **The Consistency Spectrum — Linearizable to Eventual (CAP/PACELC lens)** with 5 questions, easy to tricky, ONE at a time. Tell me if each answer is right; at the end, explain clearly what I got wrong and why. If you're unsure or a claim isn't standard, say so and reason from first principles instead of guessing.
🧠 Make it stick

Intuition + hook + flashcards for long-term memory.

Help me remember **The Consistency Spectrum — Linearizable to Eventual (CAP/PACELC lens)** for the long term: give the one-sentence intuition, a memorable hook/mnemonic, a tiny worked example, and 3 active-recall flashcards (Q -> A). If you're unsure or a claim isn't standard, say so and reason from first principles instead of guessing.

📝 My notes