Code Room
System designHardsd-g038
Subject Consistency tuningLevel Senior–Staff~45 minCommon in Databases & SQL interviewsIndustries Technology, Software development

Question

A multi-region social-comment system serves reads from the nearest region's replica (async cross-region replication, ~200ms lag) for low latency, but users complain: after posting a comment they sometimes don't see it on refresh, and a reply occasionally appears before the comment it replies to. The system is otherwise eventually consistent and you want to keep regional read locality. Design the consistency guarantees to fix both bugs without forcing global strong consistency, and explain the trade-off.

What a strong answer looks like

Clarify scale and constraints first. Propose a clean component breakdown, then go deep on the hard parts — data model, bottlenecks, consistency, failure modes — and name the trade-offs you are making.

Narrate your design
Loading whiteboard…
Run or narrate your approach, then ask the coach.