The relaxed cousin of ACID, and a fuller rule than CAP that also counts latency.
BASE and PACELC are two ways to think about what a big distributed database gives up to stay fast and available.
ACID databases promise strict rules: a transaction is all-or-nothing, and everyone sees correct data right away. That is hard to keep when data lives on many machines in many places. BASE is a different stance (it is a style of design, not a standard): accept some looseness in exchange for scale and uptime.
The CAP theorem says that during a network partition a system must choose between consistency and availability. That is true, but partitions are rare. Most of the time the network works. PACELC (said "pass-elk") adds the missing question: when there is no partition, what do you trade? The answer is latency versus consistency. To be sure that every copy is up to date, a write must wait for the other copies to confirm, and that takes time.
| ACID | BASE | |
|---|---|---|
| Main goal | Correctness | Availability and scale |
| Consistency | Strong, right away | Eventual |
| Typical home | Single-node or tightly coordinated databases | Large distributed NoSQL stores |
| Transactions | Full multi-row, all-or-nothing | Often limited to one item or partition |
| On failure | May refuse requests to stay correct | Keeps answering, may be stale |
| Mindset | Prevent bad states | Allow them briefly, then repair |
| Label | In a partition | Otherwise | Rough meaning |
|---|---|---|---|
| PA/EL | Available | Low latency | Fast and always on, accepts stale reads. Dynamo-style stores are often described this way. |
| PC/EC | Consistent | Consistent | Always correct. Pays with refused requests in a partition and slower writes. |
| PA/EC | Available | Consistent | Keeps working in a partition, but strict when all is well. |
| PC/EL | Consistent | Low latency | Strict in a partition, fast otherwise. A less common mix. |
A simplified model with made-up illustrative numbers: a write inside one data centre takes 2 ms, and a copy needs about half the round trip to reach the other side. Nothing here is random.
| Term | Meaning in easy words |
|---|---|
| BASE | Basically Available, Soft state, Eventually consistent: a relaxed style of design for big systems |
| Basically available | The system keeps answering most requests even when parts have failed |
| Soft state | Stored data may still be changing as copies catch up, even with no new writes |
| Eventual consistency | If writes stop, all copies will agree after some time |
| PACELC | If Partition: Availability or Consistency. Else: Latency or Consistency |
| Network partition | A break in the network that splits machines into groups that cannot talk |
| Synchronous replication | The write waits until the replicas confirm it |
| Asynchronous replication | The write is confirmed first, and copied in the background |
| Stale read | A read that returns an older value than the latest write |
| Write conflict | Two copies accepted different changes to the same item and now disagree |
| Last write wins | A simple conflict rule that keeps the change with the latest timestamp |
| Choice | We gain | We lose |
|---|---|---|
| PC in a partition | No wrong answers | Some requests are refused |
| PA in a partition | Everyone is served | Stale reads and possible conflicts |
| EC in normal times | Fresh reads, simple thinking | Slower writes (a round trip to replicas) |
| EL in normal times | Fast writes and reads | Brief staleness after each write |
| Per-request tuning | Strictness only where needed | More settings, and more room for mistakes |
| Last write wins | Simple repair | A concurrent update can be silently lost |