Back to list
Lv.3

Eventual Consistency

Eventual Consistency

A property of distributed data where copies stored in different places become identical given enough time

In Simple Terms

Eventual consistency is a way of storing data where copies kept in separate places end up matching after a little while. When data gets changed, the system doesn't wait for every location to update at once. It updates one place first, then sends copies to the others so they can catch up later. So right after an update, you might see old information depending on where you look, but give it a moment and every location will show the latest version.

Behind the Name

The name tells you what to expect: "consistent" means every copy of the data agrees, and "eventual" means that agreement shows up in the end rather than instantly. Right after an update, the copies might not match for a moment. But give the system a little time, and the differences disappear until every copy tells the same story.

Take a Closer Look!

Eventual consistency is the idea that when the same data is split across multiple servers, the copies might differ for a short time right after an update, but given enough time, every location ends up with the same content.
In a nutshell, the goal isn't perfect agreement at this very instant. It's settling into the correct state in the end.

Big services keep copies of their data on many servers around the world so they don't go down even when traffic spikes.
If the system had to wait until every server was updated at the same time whenever something changed, processing could get heavy and responses could slow down.
So instead, it updates just a nearby server first and replies right away, then passes the change along to the remaining servers one after another.

For example, with social media posts or video view counts, different people or places may see slightly different content or numbers right after an update.
In situations like these, a small delay doesn't cause any trouble, so eventual consistency is often used to favor speed and resilience against outages.
On the other hand, it isn't used where even a tiny mismatch is unacceptable, like a bank account balance. Systems pick the approach that fits the nature of the data they handle, using other mechanisms where needed.