Explain CAP vs PACELC.

CAP vs PACELC: CAP says that during a network partition you must sacrifice either consistency or availability; PACELC says that even without partitions, systems must trade between latency and consistency.

When to Use

Use CAP to reason about failure scenarios where the network splits; use PACELC to guide design decisions under normal operations where you balance latency against consistency.

Example

If a network partition occurs, you must either reject writes (consistency) or allow stale reads (availability).

Without a partition, PACELC highlights the choice: sync all replicas (slower, consistent) or respond quickly from one (faster, less consistent).

Want to dive deeper?

Check out Grokking System Design Fundamentals, Grokking the System Design Interview, or practice with Mock Interviews with ex-FAANG engineers.

Why Is It Important

These models frame the core trade-offs every distributed database or system must face, shaping decisions for cloud storage, microservices, and large-scale apps.

Interview Tips

Be ready to define both laws clearly: CAP (consistency vs availability during partition) and PACELC (latency vs consistency when no partition). Mention real systems—Cassandra favors availability, BigTable favors consistency.

Trade-offs

CAP trade-off: availability vs consistency in failures. PACELC trade-off: latency vs consistency in normal operation. Both influence scalability and user experience.

Pitfalls

  • Thinking CAP is “choose any two”—partition tolerance is unavoidable.
  • Forgetting PACELC—latency and consistency matter even without failures.
TAGS
System Design Interview
System Design Fundamentals
CONTRIBUTOR
Design Gurus Team
-

GET YOUR FREE

Coding Questions Catalog

Design Gurus Newsletter - Latest from our Blog
Boost your coding skills with our essential coding questions catalog.
Take a step towards a better tech career now!
Explore Answers
Preemptively addressing potential interviewer concerns in designs
Is it hard to get hired at Oracle?
Transforming dense mathematical solutions into code incrementally
How do I prepare for Microsoft team interview?
Demonstrating mental flexibility in rethinking solution steps
What are your biggest challenges in your career?
Related Courses
Course image
Grokking the Coding Interview: Patterns for Coding Questions
Grokking the Coding Interview Patterns in Java, Python, JS, C++, C#, and Go. The most comprehensive course with 476 Lessons.
4.6
Discounted price for Your Region

$197

Course image
Grokking Modern AI Fundamentals
Master the fundamentals of AI today to lead the tech revolution of tomorrow.
3.9
Discounted price for Your Region

$78

Course image
Grokking Data Structures & Algorithms for Coding Interviews
Unlock Coding Interview Success: Dive Deep into Data Structures and Algorithms.
4
Discounted price for Your Region

$78

Image
One-Stop Portal For Tech Interviews.
Copyright © 2026 Design Gurus, LLC. All rights reserved.