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
Subtopics in CAP Theorem & PACELC (2)
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