System Design ($200k+) · CONSISTENCY · Distributed Systems Core · 2026

Read-Your-Writes Routing vs Always Reading Async Replicas

Quick Decision Rule: When Users edit their account settings and immediately reload the page, complaining their changes vanished due to 400ms replica lag, choose Route a user’s reads to the primary (or track their write LSN/timestamp) for a short window after their own write.

Trigger ConditionUsers edit their account settings and immediately reload the page, complaining their changes vanished due to 400ms replica lag
Recommended ChoiceRoute a user’s reads to the primary (or track their write LSN/timestamp) for a short window after their own write
Classic TrapSending immediate post-write reads to an asynchronous read replica breaks user trust even when replication lag is under half a second.
VerificationAudited on 2026-11-23 · Distributed Systems Core · 2026

30-SECOND DECISION TRAP CHECK · CONSISTENCY

Test your instinct

After routing all `GET` traffic to PostgreSQL async read replicas (300ms lag), users who update their avatar immediately see their old avatar after redirect and file bug tickets. What fixes the UX without moving all global reads to the primary?

Primary Engineering Documentation

Related Consistency Decision Guides