BASE
A distributed-system design approach that keeps some operations available by letting them return older data. If updates stop and previously accepted changes reach all copies, those copies converge.
Also known as: Basically Available, Soft state, Eventual consistency
What BASE means in practice
Suppose a service can answer a request from a nearby replica, but that replica hasn't received the latest write. Should the service wait, fail the request, or return the older value? A BASE-style design allows the last option where the application can tolerate it. BASE is a design philosophy, not a specification that tells you exactly what every read or write will do.
What the letters stand for
- Basically Available: The system aims to keep serving requests despite some failures. A read might still succeed when a replica is unreachable, for instance. That doesn't mean every operation will succeed during every outage.
- Soft state: A node's state can change without a new client request. A replica might apply a write it receives in the background even though no client has contacted that replica.
- Eventual consistency: If writes stop and the system can deliver and process the accepted updates, replicas converge. This describes the result, not a deadline for reaching it. If replicas can accept conflicting writes, the system also needs a way to decide what state they converge on.
Example: a product catalog
A seller renames a product. The primary database acknowledges the write, but the catalog reads from an asynchronously updated replica. A shopper can still see the old name until that replica applies the update. Even the seller could refresh the page and see the old name. If the seller must see their own change immediately, the application could send that follow-up read to the primary rather than to a replica that might be behind.
This trade-off can work well for catalog descriptions, search results, and activity feeds. It doesn't follow that a stale inventory count is safe for checkout. Displaying an approximate count is one thing; confirming a reservation for the last item requires an atomic check and update against the authoritative inventory.
How BASE relates to ACID and CAP
BASE and ACID aren't mutually exclusive. A service can use an ACID transaction to reserve inventory and update the storefront asynchronously. ACID consistency is about preserving data rules, such as keeping inventory nonnegative. Eventual consistency is about copies converging over time. CAP is a separate result: it describes the trade-off between availability and strong consistency during a network partition. Calling a system BASE doesn't tell you which requests will succeed during a partition or what guarantees they will have.
How it comes up in interviews
In a system design interview, go beyond naming the acronym. Pick a specific read that can be stale, explain what the user sees while a replica is behind, and identify the operation that cannot rely on that replica. If the interviewer asks how stale the data can get, distinguish a typical replication delay from an actual bound. Eventual consistency alone doesn't provide one.