All Questions
Caching hard

Why is deleting a 5GB List in Redis dangerous?

  1. A It leads to a massive, non-recoverable memory fragmentation event that prevents the server from allocating contiguous space for new objects.
  2. B It blocks the single execution thread during memory reclamation, causing a multi-second freeze for all other clients connected to the server.
  3. C It will fail with a fatal Out Of Memory (OOM) error because the engine lacks the ability to swap large data structures out to a temporary disk-based store.
  4. D It risks corrupting the primary Append Only File (AOF) if the deletion event is not successfully committed before a background synchronization event occurs.

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

Get the app

Related questions