Backend & systems·Caching and invalidation
you ask the cache for the key and the cache itself is the thing that goes and loads it when it is not there.
Read-through cache
The cache sits inline in front of the store and fetches missing entries on your behalf, so application code only ever talks to the cache. That keeps loading logic in one place and makes stampede protection something the cache can implement once. The price is a hard dependency: if the cache is down, reads are down, because there is no path around it.