CAP teorema teigia, kad paskirstyta sistema gali garantuoti daugiausia du iš trijų savybių — Konsistentumą, Prieinamumą ir Skaidinio toleranciją — vienu metu. Kadangi tinklo skaidiniai yra neišvengiami, tikrasis pasirinkimas yra tarp konsistentumo ir prieinamumo skaidinio metu.
Trys savybės
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.
