All Questions
Redis medium

How does Redis prevent the Append Only File (AOF) from consuming all available disk space as logs accumulate over time?

  1. A It periodically truncates the file and deletes all history older than 24 hours to preserve partition space.
  2. B AOF Rewrite: A background process rebuilds the log from the current memory state to remove redundant writes.
  3. C It uses standard GZIP compression on the log file every time it reaches a predefined physical size limit.
  4. D It shifts all overflow write commands into a secondary unlogged staging area on a separate physical disk.

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

Get the app

Related questions