Q17: What is the difference between strong consistency and eventual consistency?

Difficulty:AdvancedTopic:Distributed Systems

Strong consistency, often linearizability, makes each successful operation appear to take effect atomically at a point between invocation and response, respecting real-time order. Eventual consistency allows replicas to temporarily return different values but promises convergence under stated assumptions. Stronger guarantees can require coordination and increase latency or reduce availability during failures. Some systems offer tunable or session-level guarantees between these extremes.

Key Takeaways
  • Strong consistency simplifies reasoning about shared state but may cost latency.
  • Match consistency guarantees to business invariants.