Databases

What is BASE?

Also known as: Basically Available, Soft state, Eventual consistency

Definition

BASE is a design philosophy for distributed databases that prioritizes availability and partition tolerance over immediate consistency, making it a looser alternative to ACID in NoSQL systems.

BASE stands for Basically Available, Soft state, Eventual consistency. It is a set of principles for designing distributed databases, especially NoSQL systems, that relax the strict consistency guarantees of ACID (Atomicity, Consistency, Isolation, Durability) in exchange for higher availability and scalability. The term was coined by Eric Brewer in the late 1990s as a counterpart to ACID, reflecting the trade-offs described in the CAP theorem.

Under BASE, a system remains "Basically Available" meaning it responds to every request, even if that response may be a stale or incomplete result. "Soft state" means the system's state can change over time without input, because nodes may diverge and later converge. "Eventual consistency" guarantees that, given enough time without new updates, all replicas will converge to the same value. This model allows writes to proceed even when network partitions occur, at the cost of temporary inconsistency.

BASE is commonly used in distributed key-value stores, document databases, and other NoSQL systems such as Amazon Dynamo, Apache Cassandra, and Riak. It is appropriate for applications where availability and partition tolerance matter more than immediate consistency, for example social media feeds, shopping cart services, and content caching layers. Developers must design application logic to handle stale reads and resolve conflicts, often using techniques like last-write-wins or version vectors.

Key facts

  • BASE was coined by Eric Brewer as a counterpart to ACID for distributed systems.
  • It relaxes consistency guarantees to achieve higher availability and partition tolerance.
  • The three pillars are Basically Available, Soft state, and Eventual consistency.
  • BASE systems often use conflict resolution strategies like last-write-wins or version vectors.
  • It is a practical embodiment of the CAP theorem trade-offs, favoring AP over CP.

How it works in practice

An e-commerce shopping cart built on a BASE database: when a user adds an item, that write is accepted immediately by the local node. If a network partition momentarily isolates that node, other replicas may not see the addition for a few seconds. When the partition heals, the replicas reconcile and the cart eventually shows the item. Meanwhile, the user sees no error or delay.

Related terms

ACID CAP theorem NoSQL Eventual consistency Apache Cassandra Amazon DynamoDB

References

More in Databases

ACID

ACID (Atomicity, Consistency, Isolation, Durability) is a set of properties guaranteeing reliable database transaction processing, ensuring data integrity despite concurrent access or failures.

B-Tree Index

A B-Tree index is a self-balancing tree data structure that maintains sorted data for efficient insertion, deletion, and range queries in database systems.

CAP Theorem

CAP theorem states that a distributed data system cannot simultaneously provide consistency, availability, and partition tolerance; it can only guarantee two of the three.

Connection Pool

A managed cache of database connections that applications reuse rather than opening and closing a connection for each query, reducing latency and server load.

Failover

Failover is the process of automatically or manually promoting a replica database to primary when the active node fails, ensuring continued availability.

Foreign Key

A column or set of columns in a database table whose values must match a primary key in another table, ensuring referential integrity between the two tables.

Hash Index

A data structure that maps keys to storage locations using a hash function, providing constant-time equality lookups but no ordered or range scans.

Materialized View

A database object that stores the precomputed result of a query as a table, refreshed periodically or on demand to improve read performance and reduce computational overhead.

NoSQL

NoSQL is a family of non-relational database systems designed for flexible schemas, horizontal scaling, and high-throughput data access that traditional SQL databases cannot easily provide.

Read Replica

A read replica is an asynchronously updated copy of a primary database instance used to offload and scale read-only query traffic without affecting the source database's write performance.

Who Is Online

In total there are 93 users online: 0 registered, 87 guests and 6 bots.

Bots: AhrefsBot Bingbot Facebook Other Bot Other Spider SemrushBot

Users active in the past 15 minutes. Total registered members: 340