Read-through cache
Definition
In a read-through cache, the cache layer (or a library wrapping it) is configured with a loader and fetches a missing value from the underlying store on a miss before returning it to the caller.
In practice
Moving loading into the cache keeps one implementation of the load logic and makes request coalescing natural: the cache sees all concurrent misses for a key and can issue a single load. Libraries such as Caffeine loading caches, and many CDNs in front of an origin, work this way.
Read-through changes who loads, not how often the database is read: the miss rate is the same as with cache-aside. The cache becomes a critical dependency on the read path, because the application has no direct route to the database if the cache fails, and first reads of every key are still slow.
Example
A loading cache built with Caffeine.newBuilder().expireAfterWrite(10, MINUTES).build(id -> repo.find(id)) turns 400 concurrent misses for user 7 into one database query.