0
0
HLDsystem_design~5 mins

Consistency models (strong, eventual) in HLD - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
AWeak consistency
BStrong consistency
CCausal consistency
DEventual consistency
In which consistency model can reads temporarily return stale data after a write?
AEventual consistency
BStrong consistency
CLinearizability
DSequential consistency
Which is a benefit of eventual consistency?
ASimpler programming model
BImmediate data accuracy
CHigher availability and performance
DNo data conflicts
Strong consistency is most important for which type of application?
ASocial media feeds
BVideo streaming
CCaching static content
DBanking transactions
What does eventual consistency guarantee if no new updates occur?
AData will converge to the same value
BData will remain inconsistent
CData will be lost
DData will be immediately consistent
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.