The problem/use-case that the feature addresses
AOFs are large. It can take a long time to rewrite.
On a busy server, that time spent rewriting will enqueue events in RAM, for playback once the rewrite is finished, but that's bad if there isn't enough RAM.
Description of the feature
Use disk space instead. It will slow down the rewrite, but rewrite times are not precious, in general. RAM space is.
Alternatives you've considered
One could get more RAM, on some machines. It isn't always possible.
Comment From: chadm-sq
I think I can come up with a mostly clean solution. I'll give it a go.
Comment From: oranagra
@chadm-sq thank you for that suggestion, but i think we already have a better design (not just storing the temporary buffer in on the disk), which we haven't yet got to. see https://github.com/redis/redis/pull/6584#issuecomment-677401085
Comment From: chadm-sq
Thanks, orangra. In a PR I'll suggest a small, discrete change anyway. It might surprise you.