Thursday, December 3, 2026 | London 10°C · Drizzle
DailyGlimpse

AI

Mastering the CAP Theorem: A System Design Interview Staple

TechingEasy 1 min read

The CAP Theorem is one of the most frequently asked topics in system design interviews and is a cornerstone concept in distributed systems. It states that a distributed data store can provide only two of the following three guarantees simultaneously: Consistency, Availability, and Partition Tolerance.

  • Consistency: Every read receives the most recent write or an error.
  • Availability: Every request receives a (non-error) response, without the guarantee that it contains the most recent write.
  • Partition Tolerance: The system continues to operate despite an arbitrary number of messages being dropped or delayed by the network between nodes.

In practice, since network partitions are inevitable, designers must choose between CP (Consistency + Partition Tolerance) and AP (Availability + Partition Tolerance) systems. This trade-off is essential for building scalable, resilient distributed systems.

Understanding CAP helps engineers make informed decisions when architecting databases, microservices, and cloud-native applications. It's a must-know for anyone preparing for technical interviews or designing modern distributed systems.

React