Pattern 10 / CACHE

Read-Through

Use this when keeping application code free of cache-loading logic.

Pressure
Keeping application code free of cache-loading logic
Mechanism
The application talks only to the cache; the cache knows how to fetch misses from storage
Toll
Cache infrastructure becomes coupled to the data source and query semantics
Architecture plate10
Diagram for Read-Through
Executive brief

Read-Through fits when keeping application code free of cache-loading logic. Mechanism: the application talks only to the cache; the cache knows how to fetch misses from storage. Use it for platform teams that want centralized caching behavior behind a stable interface. The toll: cache infrastructure becomes coupled to the data source and query semantics.

Use when

Platform teams that want centralized caching behavior behind a stable interface.

Example

Managed cache layer loading product records on miss.

Review framing

Describe the pressure first, then the mechanism, then the cost. That keeps the design grounded.

Same pressure family

Caching Patterns

07Cache-Aside (Lazy Loading)08Write-Through09Write-Behind (Write-Back)11Cache Stampede Prevention
โ† 0911 โ†’