Eventual Consistency
Pronunciationih-VEN-choo-ul kun-SIS-ten-see
Definition
Eventual consistency means that after a write, different copies of the data may briefly disagree, but if no new writes arrive they will all end up with the same value.
Where you hear it
In distributed databases (DynamoDB, Cassandra), read replicas, DNS propagation and CAP theorem talks.
Examples
The profile update shows on the replica a second later; it's eventually consistent.
Don't read from a replica right after a write if you need the new value.
The dashboard shows the old count for a moment, because the replicas catch up over time.
Common mistake
Assuming a read right after a write returns the new value. With replicas it might return the old one.
Don't confuse with
Strong consistency, where every read sees the latest write, at the cost of speed or availability.
Say it at work
- In a meeting or chat
Is this read eventually consistent?
- In an email or ticket
Users may see old data for a few seconds.
Keep exploring
More in Architecture & Design