System Design · Senior · Question 45 of 75

How does designing for strong consistency differ for a bank balance versus a like counter?

Explanation

Consistency requirements are set by the domain: money needs ACID transactions and idempotency, while likes can be accumulated, aggregated asynchronously and shown with a delay ("1.2K"). The choice affects cost and scalability.

Further reading

Problem with a question

System Design · Senior · question 45

Test yourself

Take the System Design · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz