All Questions
Caching easy

In the Cache-Aside pattern, what happens when the application requests data that is missing from the cache (a 'Cache Miss')?

  1. A The cache transparently fetches the data from the database and returns it directly to the application.
  2. B The application receives a null result and must fetch the data from the source itself, then update the cache.
  3. C The request is immediately terminated with a 404 error code until a background worker warms the cache.
  4. D The database triggers an asynchronous push operation to populate the cache with the missing resource key.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions