The Replica That Lied
The update returned 200 OK. Why does the next page show the old value?
Diese Aufgabe ist noch nicht auf Deutsch übersetzt. Du liest die englische Version.
Mission:Show users their own writes immediately, even when the replica lags, without sending most reads back to the primary.
Tallow Cloud moved read-only queries to a PostgreSQL read replica to offload the primary. Since then, users sometimes see their old profile right after saving it — and submit the change again. Replication lag is usually tens of milliseconds but spikes during backups.
Mission: Show users their own writes immediately, even when the replica lags, without sending most reads back to the primary.
Lernziele
- Explain asynchronous replication lag.
- Implement read-your-writes consistency.
- Weigh primary load against freshness and latency.
SimulationSimuliert