CAP సిద్ధాంతం ఒక విభజిత వ్యవస్థ ఒకే సమయంలో మూడు లక్షణాలలో గరిష్టంగా రెండింటిని మాత్రమే రక్షించగలదని పేర్కొందు — సంపూర్ణత, లభ్యత మరియు విభజన సహనశీలత. నెట్వర్క్ విభజనలు తప్పించుకోలేనివి కాబట్టి, విభజన సమయంలో వాస్తవ ఎంపిక సంపూర్ణత మరియు లభ్యత మధ్య ఉంటుంది.
మూడు లక్షణాలు
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.
