Cache warming and monitoring
medium 27 minCache warming loads the values people will ask for before the traffic arrives, so a new or restarted cache does not send everything to the database.
Where it shows up
The same pattern appears across everyday software.
PostgreSQL pg_prewarm
Loads table data into memory on request, and can save and reload what was in memory across a restart.
Facebook's mcrouter
Offers cold cache warm up: a new pool is filled from a warm one while it begins to serve.
Caffeine's refreshAfterWrite
A Java cache can reload a value in the background after a set age while still returning the old one.
Google's SRE book
Names a cold cache after turning up a new cluster as one cause of overload that can spread.
Shops before a sale
The product pages of the offer are loaded into the cache and the CDN before the doors open.
New servers behind a balancer
Many teams send a new server a small share of traffic first, so its caches fill before it takes a full share.