All Questions
Caching medium

Under what condition is 'Negative Caching' (caching a clear 'Not Found' signal) most beneficial?

  1. A When the underlying database is strictly read-only and uses a static dataset that never requires cache invalidation.
  2. B When lookups for non-existent items are computationally expensive and the same invalid keys are requested frequently.
  3. C When the cache memory utilization has reached its physical limit and the eviction policy is actively reclaiming space.
  4. D When the application utilizes a Write-Through caching pattern that ensures every database update is mirrored in the cache.

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

Get the app

Related questions