Session consistency across replicas
Your task
A social product writes to a single primary region and serves reads from async read-replicas in 4 regions to scale reads (reads are 50x writes). Users complain about two specific bugs: (1) after editing their profile bio, they refresh and see the OLD bio (replica lag), and (2) sometimes a refresh shows newer data than a previous refresh did, then older again (they hit different replicas with different lag). Without going to synchronous global replication, design the consistency guarantees that fix exactly these two complaints. Name the specific session-consistency properties involved, and explain the mechanism (tokens, routing, or versioning) that delivers each.
It covers
- Bounded staleness
- Read your writes
- Session