read your writes
A guarantee that after you make a change, your own later reads will include it.
In more detail
Without it, a buyer can refresh onto a lagging replica and see no ticket, then buy again. Common fixes are reading from the leader for a short window after a write, or pinning the session.
Related terms
- read replica — A copy of a database that follows the primary’s changes and can serve read traffic or be promoted to take over.
- replication lag — How far behind the leader a replica is, measured in time or in writes.
- sticky session — A load balancer setting that sends every request from one client to the same server copy, usually because that copy holds its state in memory.
Taught in
- Replication, Failover And Leader Election — Scalable System Design & Distributed Architecture
- Cache Invalidation And The Three Hard Cases — Scalable System Design & Distributed Architecture
- Worked Design One: Scaling The Ticket Booking System — Scalable System Design & Distributed Architecture