Skip to content
BENIBIX Learn

Eventual Consistency

Development🏗️ ArchitectureDistributed Systems

Also known as Eventually Consistent, BASE

Copies of data may differ for a moment. Then they all match.

Think of it like

Think of it like news going round a village. For a while some know and some do not. Soon all do.

Example

Emma changes her profile photo. For a few seconds, a friend in another country still sees the old one, then the new photo appears.

Why it matters

It keeps systems fast and online around the world. The price is a short spell of old data.

Definition

Eventual consistency means copies on different machines may differ for a short time. In the end they all match. A change is saved on one machine first and then copied to the others. While it travels, a reader may see the old value. Once no new changes arrive, every copy catches up. DNS works this way: a changed address can take hours to reach everyone.

Common mistake

Using it for data that must always be right, like a bank balance or the last item in stock. Those need strong consistency.

Key takeaways

  1. 1
    Differ for a while. Copies catch up.
  2. 2
    Fast and online. The reward.
  3. 3
    Not for money. Some data must be exact.

Compare