BASE

BASE is a consistency model for distributed and NoSQL systems that relaxes the strict guarantees of ACID in exchange for higher availability and partition tolerance. The acronym is a deliberate contrast to ACID.

Basically Available

The system guarantees availability — every request receives a response (success or failure), even during partial system failures. Data is replicated across multiple nodes so the system remains operational when individual nodes go down.

Soft State

The state of the system may change over time, even without new input. Replicas may not be immediately consistent — data written to one node may not yet be propagated to all replicas.

Eventual Consistency

If no new updates are made, all replicas will eventually converge to the same state. The system does not guarantee when this will happen, but it guarantees it will happen.

sequenceDiagram
    participant Client
    participant Node_A as Node A
    participant Node_B as Node B
    participant Node_C as Node C
    Client->>Node_A: WRITE x = 42
    Node_A-->>Client: ACK (success)
    Note over Node_A,Node_C: Replication in progress...
    Node_A->>Node_B: Replicate x = 42
    Node_A->>Node_C: Replicate x = 42
    Note over Node_A,Node_C: Eventually consistent

When BASE Makes Sense

ScenarioWhy BASE
Social media feedsSlight delay in showing new posts is acceptable
Shopping cartsCart state can be reconciled later
DNS propagationPropagation delay is acceptable
Analytics / metricsApproximate counts are fine in real-time
Content deliveryStale cache is better than no response

BASE vs ACID

PropertyACIDBASE
ConsistencyStrong (immediate)Eventual
AvailabilityMay sacrifice for consistencyPrioritized
Concurrency modelLocking / MVCCOptimistic, conflict-free replicated data
Typical systemsPostgreSQL, MySQL, OracleCassandra, DynamoDB, CouchDB
Use caseFinancial transactions, inventoryHigh-scale web apps, IoT

Tunable Consistency

Modern systems blur the line — many NoSQL Databases let you tune consistency per query. See CAP Theorem for the theoretical foundation behind these trade-offs.