liveBook · Manning

Eventual consistency

As explained in Acing the Frontend Interview

Eventual consistency is a consistency model in which replicas may temporarily return stale data but converge to the latest state when writes cease.

Eventual consistency allows replicas to return stale data temporarily while guaranteeing convergence to the latest state after writes stop. It trades strict correctness for availability, partition tolerance, resilience, and performance. section 6.2

Use eventual consistency when temporary inconsistency is acceptable:

  • Choose it for highly available distributed systems such as DynamoDB, Cassandra, or DNS. section 6.2
  • Contrast it with strong consistency, which returns the latest write or an error and suits financial data. section 6.2
  • Explain the choice through CAP trade-offs: partition tolerance remains necessary, leaving consistency and availability to balance. section 6.2

Interview answer

When asked about consistency models, explain that replicas may temporarily disagree under eventual consistency but converge without new writes. Contrast this with strong consistency, then justify eventual consistency for systems where uptime matters more than immediate freshness. section 6.2

How Acing the Frontend Interview covers it

How deep it goes
Defines temporary staleness and convergence, compares strong consistency, and identifies intermediate models without detailing implementation internals.
Examples
Uses DynamoDB, Cassandra, DNS, PostgreSQL, banking, and financial ledgers to contrast eventual and strong consistency.
What it assumes
Assumes distributed-system fundamentals while teaching the distinction between strong and eventual consistency.
What you can do after
Evaluate consistency trade-offs and justify eventual or strong consistency for distributed-system requirements.
How it connects
Connects eventual consistency to strong consistency, CAP theorem, availability, partition tolerance, causal consistency, and read-your-writes consistency.

Also explained in

Compare how 10 books explain eventual consistency →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Acing the Frontend Interview. The section links point to the parts of the book it draws on.