There's more...
For Redis, prior to the 4.x version, you could enable RDB and AOF at the same time to achieve the best data safety. It's advisable to enable AOF and the mixed format of persistence after Redis 4.x. Please note that it does not make any sense to turn on the mixed format with the AOF option disabled, in that nothing will be appended to the AOF file even if you manually create the AOF file by calling BGREWRITEAOF. If you can live with some possible data loss, using RDB alone can achieve a better performance. Moreover, according to Antirez, the author of Redis, using AOF alone is discouraged, to prevent data lost in the event of bugs in the AOF engine.
Lastly, Redis guarantees that RDB dumping and AOF rewrites will never run at ...
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