All Questions
Caching medium

Comparing Lazy Loading (Cache-Aside) vs Eager Loading (Push/Write-Through), what is a disadvantage of Lazy Loading?

  1. A It is significantly more complex to implement compared to Eager Loading patterns.
  2. B Every 'Miss' results in a predictable latency penalty due to the sequential database read and subsequent cache write operations.
  3. C It tends to fill the cache with vast amounts of unused data that will never be requested again by any active user sessions.
  4. D It requires the application to implement complex dual-write logic to ensure that the database and cache remain perfectly synchronized.

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

Get the app

Related questions