Design Resilient Architectures
An application repeatedly reads product records from a database, but many records are rarely requested. The team wants to cache only requested records and can tolerate a slower first read. Which caching strategy BEST fits?
Show the answer
Correct answerB. Cache-aside loading when a requested record is missing
AWhy not this: Write-through populates records during writes, even when those records are never requested.
BWhy this is right: Cache-aside fetches and caches a record on demand after a cache miss.
CWhy not this: Preloading the entire catalog consumes cache capacity for rarely requested records.
DWhy not this: Read replicas offload reads but do not implement the requested selective caching strategy.
Cache-aside loads a record into the cache after a cache miss, so only requested records consume cache space. Write-through caching populates the cache during writes, including records that might never be read.