Recall & Review
beginner
What is strong consistency in distributed systems?
Strong consistency means that after a write completes, all reads will see that write immediately. It's like everyone always sees the latest version of data, no matter which server they ask.
Click to reveal answer
beginner
Define eventual consistency.
Eventual consistency means that if no new updates happen, all copies of data will become the same eventually. But right after a write, some reads might see old data for a while.
Click to reveal answer
beginner
Give a real-life example to explain strong consistency.
Imagine a bank account balance. If you deposit money, strong consistency means every teller and ATM immediately shows the new balance to everyone.
Click to reveal answer
intermediate
Why might a system choose eventual consistency over strong consistency?
Because eventual consistency allows faster responses and better availability by letting some servers be temporarily out of sync. It's useful when perfect up-to-date data is not critical.
Click to reveal answer
intermediate
What is a common tradeoff between strong and eventual consistency?
Strong consistency gives up some speed and availability to ensure all users see the same data immediately. Eventual consistency gives up immediate accuracy to gain speed and availability.
Click to reveal answer
Which consistency model guarantees that all reads see the latest write immediately?
✗ Incorrect
Strong consistency ensures all reads reflect the most recent write immediately.
In which consistency model can reads temporarily return stale data after a write?
✗ Incorrect
Eventual consistency allows temporary stale reads but guarantees data will converge eventually.
Which is a benefit of eventual consistency?
✗ Incorrect
Eventual consistency improves availability and performance by allowing temporary data divergence.
Strong consistency is most important for which type of application?
✗ Incorrect
Banking requires accurate, up-to-date data, so strong consistency is critical.
What does eventual consistency guarantee if no new updates occur?
✗ Incorrect
Eventual consistency guarantees that all replicas will converge to the same data eventually.
Explain the difference between strong consistency and eventual consistency using a simple analogy.
Think about how quickly everyone sees an update in different situations.
You got /3 concepts.
Describe scenarios where eventual consistency is preferred over strong consistency and why.
Consider tradeoffs between accuracy and performance.
You got /3 concepts.