Skip to content
We areTOP 1%

What is the difference between strong consistency and eventual consistency?

MediumConceptCAP, Consistency & Availability
Track your progress
First attempt
Re-solve after a few days
Final pass before interviews

Answer

Under strong consistency, once a write is acknowledged, every later read returns that value or a newer one, as if there were a single copy of the data. Under eventual consistency, replicas may return stale data for a while, but they converge to the same value once writes stop.

  • Strong suits account balances, inventory and unique usernames; it costs latency because replicas must coordinate before acknowledging.
  • Eventual suits likes, view counts, feeds and DNS; it gives lower latency and higher availability.
  • Middle ground: read-your-writes (users always see their own updates), monotonic reads and causal consistency fix the most visible anomalies without full coordination.
  • Decide per data type; most real systems mix both models.

More in CAP, Consistency & Availability

Sign in to track your progress

Your checkboxes, streak and activity heatmap are saved to your account and sync across devices. It is free.
Sign in with email

New here? Create an account