تنص نظرية CAP على أن النظام الموزع يمكنه ضمان اثنين من ثلاثة خصائص كحد أقصى — الاتساق (Consistency)، التوفر (Availability)، وتحمل التقسيم (Partition tolerance) — في نفس الوقت. بما أن تقسيمات الشبكة حتمية، فإن الخيار الحقيقي يكون بين الاتساق والتوفر أثناء حدوث تقسيم.
الخصائص الثلاث
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.
