All Questions
Caching medium

A high-traffic service uses a 'Two-Layer Cache': L1 (In-Memory Guava) and L2 (Redis). What is the primary trade-off of introducing L1?

  1. A L1 increases network bandwidth usage.
  2. B L1 introduces 'Cache Incoherence' risk; different app instances might hold different versions of the same data in their local L1.
  3. C L1 is slower than L2 due to garbage collection.
  4. D L1 cannot store objects, requiring expensive serialization.

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

Get the app

Related questions