The CAP theorem is a staple of system design for distributed applications. It describes the limitations of any system handling data requests by establishing three main guarantees:
Consistency: every read request receives the most recent data available.
Availability: every request receives a fast, non-error response.
Partition tolerance: the system can be partitioned and can handle component failures or dropped requests without breaking.