All Questions
Redis hard

In a background AOF Rewrite, how does Redis ensure that new write commands arriving during the rewrite are not permanently lost?

  1. A It rejects incoming write requests with a specific 'Busy' error until the OS confirms the file swap is complete.
  2. B It stores new writes in a specialized Rewrite Buffer and appends them to the new AOF once the background task finishes.
  3. C It forces an immediate RDB snapshot to capture the delta changes and merges it with the finalized log file.
  4. D It relies on the client-side drivers to retry any failed commands until the server signals resonance with the disk.

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

Get the app

Related questions