Interview practice question
Data inconsistency in a multi-region setup
Cloud & DevOps · Cloud Platforms · Experienced
Your app writes to a database in one region and reads from a replica in another, and users sometimes see stale data right after making changes. How do you handle this?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Asynchronous replication lag.
- Read-your-writes: route user's reads to primary after writes.
- Session stickiness to region.
- Strong consistency where needed (global DBs with sync options).
- Show UI cues/ optimistic updates.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.