AI Hints
Home›System Design Tutorial›Hot Spots and CAP
System Design · Lesson 48 of 120

Consistency Models

Strong to eventual.

⏱ 2 min read▶ Video at 56:38🎓 Free
Watch this lesson in the System Design courseWatch on YouTube ↗Full System Design course

Consistency isn't just on or off. There's a range, from strong, where everyone sees the same thing instantly, to eventual, where copies agree after a short while.

Consistency Models
From the video: Consistency Models
  • Not on or off
  • Strong
  • Eventual

A range of guarantees

Strong consistency means every read sees the latest write, like one single copy. Read your own writes means you always see your own changes, even if others see them a bit later. Eventual consistency means copies may differ for a moment, but they all agree once updates stop.

ModelGuaranteeExample
Strongalways the latestbank balance
Read-your-writesyou see your changesprofile edits
Eventualagree after a whilelike counts

Why not always strong?

Why not always choose strong? Because it's expensive. Machines must coordinate on every write, which adds latency, and they may refuse requests during failures. Eventual consistency is faster and more available. Good designs use strong consistency only where it really matters.

keyvalue
Strongslower, may refuse
Eventualfast, always on
Money, stockstrong
Likes, viewseventual is fine

Summary

Consistency ranges from strong to eventual. Use strong where mistakes are costly, and eventual where speed matters more. Next, breaking database rules on purpose, for speed.

Key takeaways
  • Strong: latest always
  • Read your writes
  • Eventual: agree later
Next up: Denormalization — copies for speed