All Questions
Caching easy

Setting a short TTL (e.g., 60 seconds) on a cached object helps to:

  1. A Ensure that the object is eventually synchronized and written back to the primary database store.
  2. B Strictly limit the maximum amount of physical RAM that any single cached object can consume.
  3. C Minimize the risk of the data becoming significantly stale compared to the original source of truth.
  4. D Increase the overall cache hit ratio by ensuring that only the most popular items remain in memory.

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

Get the app

Related questions