The CAP theorem, also known as Brewer's theorem, states that a distributed data system can provide at most two out of three guarantees: Consistency (every read receives the most recent write), Availability (every request receives a non-error response), and Partition tolerance (the system continues operating despite network failures that split nodes). This trilemma forces architects to choose which guarantee to sacrifice based on their application's requirements, making it a critical design consideration for databases and distributed services.
