How it works...
When the AOF option is enabled, Redis will create the AOF file in the Redis data directory. The default AOF filename is appendonly.aof, which can be changed by setting the appendfilename parameter in the Redis configuration. Redis will also populate the AOF file with the current data in memory.
Whenever the Redis Server receives a write command that will result in an actual data change in memory, it will also append the command to the AOF file. However, if we take a deeper look at the file writing process, the operating system actually maintains a buffer to which the Redis commands will be written first. Data in the buffer has to be flushed to the disk to be saved permanently. This process is done by the Linux system call ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access