# CAP Theorem

## About

The CAP Theorem says that you cannot have a system that is partitioned (redundant), consistent (have consistency between partitions) and availability.

<figure><img src="https://1280074826-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F72apZlvdrtOPBphJ8hGA%2Fuploads%2FkVQ0M4AxComsQ55WdZLT%2Fcircles.png?alt=media&#x26;token=435800da-d14e-4039-acc3-328a7eb7d2b1" alt="" width="554"><figcaption></figcaption></figure>

* AC: Without partitioning, the data are consistent and available.
* AP: With partitioning, if you opt by availability, you lose consistency.
* CP: With partitioning, if you opt by consistency, you lose availability.
