🔹 1. Consistency Models

What?

Consistency in distributed systems is about what guarantees a read has after a write.

Imagine: you update your Instagram bio → should all friends see it immediately? Or is it okay if some see the old one for a few seconds?

Types of Consistency:

  1. Strong Consistency
  2. Eventual Consistency
  3. Causal Consistency
  4. Read-after-Write (Session Consistency)
  5. Monotonic Reads

Real-World Mapping:

Interview Hook:

“When asked to design a distributed system, don’t say ‘just consistent.’ Always specify which consistency model you’re targeting based on business needs.”

📌 Image Ref: Consistency Models Diagram

image.png