Interview concept

What is eventual consistency?

Eventual consistency is a model where, given no new writes, all replicas eventually converge to the same value. It trades immediate consistency for higher availability and lower latency, common in distributed and NoSQL systems.

Interview concept

How it works

Why it exists

Under the CAP theorem, staying available during a partition means accepting temporarily stale reads.

Convergence

Mechanisms like read repair, anti-entropy, and version vectors reconcile replicas over time.

When it is acceptable

Use it when availability and scale matter more than reading the very latest write, such as feeds and counters.

Interview concept

Responsible use

Use any live AI assistant only where interview, workplace, school, and platform rules allow it. Do not use generated answers to misrepresent your skills, experience, or authorship.

FAQ

Common questions.

Is eventual consistency the same as no consistency?

No. Replicas do converge; the guarantee is only that reads may be briefly stale, not permanently wrong.

When should I avoid eventual consistency?

For operations needing the latest value immediately, such as balances or inventory decrements, prefer stronger consistency.