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.
