El teorema CAP establece que un sistema distribuido puede garantizar como máximo dos de tres propiedades — Consistencia, Disponibilidad y Tolerancia a particiones — al mismo tiempo. Dado que las particiones de red son inevitables, la elección real es entre consistencia y disponibilidad durante una partición.
Las tres propiedades
CONSISTENCY (C) → every read sees the latest write (all nodes agree on the data)
AVAILABILITY (A) → every request gets a response (the system stays responsive)
PARTITION TOLERANCE (P) → the system keeps working despite network partitions
(communication breaks between nodes)
→ CAP: you can only fully guarantee TWO of these three simultaneously.
