The CAP theorem (Consistency, Availability, Partition tolerance) is a foundational rule stating that a distributed data system can guarantee only two of three properties simultaneously. Consistency means all nodes see the same data at the same time. Availability ensures every request receives a response. Partition tolerance is the system's ability to operate despite network failures that split the cluster. In practice, partition tolerance is mandatory for distributed networks, forcing a choice between Consistency and Availability during a partition.
