Architecture

CAP Theorem

A distributed system can only guarantee two of three: Consistency, Availability, Partition Tolerance.

architecture scaling complexity

Formulated by Eric Brewer in 2000, the CAP Theorem states that in any distributed data store, you can only provide two of the following three guarantees simultaneously:

Since network partitions are unavoidable in distributed systems, the real choice is between CP (consistent but may be unavailable) and AP (available but may return stale data).

Enforce this law (and 100+ more) in your AI coding agents with DevLaws.

Open DevLaws All laws →