Planned FLUSHALL
Easy · system design problem
A key-format migration will flush Redis in 20 seconds. Postgres can absorb a fifth of the reads — not all of them.
urls-api serves 19,000 reads/s through Redis (95% hit rate); misses and all writes go to a single PostgreSQL primary. The data team will run FLUSHALL at T+20s to migrate the key format, and the cache takes a minute to refill. The primary can serve about 3,800 reads/s next to the writes, it has no replicas, and none can be seeded in time. Keep 99% of requests succeeding through the flush and the refill.
Topics
More
Codelays runs in your browser: turn on JavaScript to use it.