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 Condition | Users edit their account settings and immediately reload the page, complaining their changes vanished due to 400ms replica lag |
|---|---|
| Recommended Choice | Route a user’s reads to the primary (or track their write LSN/timestamp) for a short window after their own write |
| Classic Trap | Sending immediate post-write reads to an asynchronous read replica breaks user trust even when replication lag is under half a second. |
| Verification | Audited on 2026-11-23 · Distributed Systems Core · 2026 |
30-SECOND DECISION TRAP CHECK · CONSISTENCY
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?
Read-your-own-writes consistency routes only the writing user’s immediate subsequent reads to the primary (or waits for the replica to pass the write LSN), keeping 99% of reads on replicas.
Trap: Blindly sending every GET to async replicas breaks read-your-own-writes UX.