CAP प्रमेय ले यो बताउँछ कि एक वितरित प्रणाली एकैचोटि तीनवटा गुणहरू मध्ये अधिकतम दुइटा गुणहरू गारन्टी गर्न सक्छ — Consistency, Availability, र Partition tolerance। नेटवर्क विभाजन अपरिहार्य भएकोले, वास्तविक छनोट एक विभाजनको समयमा consistency र availability बीच हो।
तीनवटा गुणहरू
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.
