Interview's MateSystem Design
Interview's Mate

System Design

Architecture & trade-offs

Visualizer

DSA Visualizer
All 32 lessons
Custom Playground
Try your own examples

Learning

System Design
31 architecture topics
SQL Learning
160 foundations → production topics
AI Engineering
160 LLM → backend topics
Data Science
160 Python → MLOps topics
Data Engineer
160 SQL → streaming topics
Docker
160 Docker learning topics
Kubernetes
160 K8s fundamentals → cloud
Java LearnSoon
Coming soon
Python Learn
Interview Q&A & internals
JavaScript Learn
Closures, async & DOM Q&A
Tech Learn
Search, practise & track Q&A
AI DSA Practice
Solve coding problems
Theme
Home
All topics/CAP Theorem & PACELC
DISTRIBUTED SYSTEMS & ARCHITECTURE · SUBTOPIC

PACELC: Latency vs. Consistency

Understand why you pay a consistency-vs-latency trade-off even when nothing is broken.

IntermediatePart of CAP Theorem & PACELC
Practice in AI HLD
Subtopics in CAP Theorem & PACELC (2)
OverviewCP vs. APPACELC Theorem

In plain words

Even when all phones work fine, waiting for your distant partner to confirm every note makes every call slower (Consistency), while jotting it down immediately feels instant (Low Latency).

Think of it like…

Waiting for two managers to co-sign every receipt (high latency, strong consistency) vs. signing locally and emailing copies later (low latency, eventual consistency).

Loading interactive diagram
Loading interactive exercise

Theory & how it works

Why PACELC is better than CAP in interviews

CAP only talks about rare network failures. PACELC explains why DynamoDB, MongoDB, and PostgreSQL replicas let you tune consistency per query - e.g., ConsistentRead=true only on checkout, fast eventual reads everywhere else.

Key points & practical guide

Summary checklist

  • PACELC = if Partition (A vs C), Else (Latency vs Consistency)
  • Sync quorum adds round-trip latency on every write
  • Tune per-endpoint when your DB supports tunable reads

When to use it

  • Multi-region database architecture discussions

Watch out for

  • Replicating synchronously across continents for casual user clicks - users feel every 150 ms round trip

Quick check

Loading quiz
Previous subtopic
CP vs. AP Under Network Partitions
Back to overview
Full CAP Theorem & PACELC Lesson