Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What do the acronyms AOF and RDB stand for in Redis?

I'm reading the Redis documentation on persistence here - https://redis.io/topics/persistence - and am wondering what the acronyms AOF and RDB stand for. Thanks! :)

like image 282
Simon Suh Avatar asked Jul 11 '17 17:07

Simon Suh


People also ask

What is AOF and RDB in Redis?

RDB (Redis Database): The RDB persistence performs point-in-time snapshots of your dataset at specified intervals. AOF (Append Only File): The AOF persistence logs every write operation received by the server, that will be played again at server startup, reconstructing the original dataset.

What is AOF file in Redis?

If you require data durability, you can enable the Redis append-only file feature (AOF). When this feature is enabled, the node writes all of the commands that change cache data to an append-only file.

What is Redis check RDB?

DESCRIPTION. Redis is an open source (BSD licensed), in-memory data structure store, used as database, cache and message broker, found at http://redis.io/ The redis-check-rdb command to check redis-server RDB files.

What is Appendonly AOF in Redis?

Redis Append Only File or AOF is a persistence mechanism that allows the Redis server to keep track and log every command executed on the server. These command logs can then be re-played when the server starts up, recreating the database to its original state.


2 Answers

AOF stands for Append Only File. It's the change-log style persistent format.

RDB is for Redis Database File. It's the snapshot style persistence format.

like image 93
Tague Griffith Avatar answered Oct 19 '22 10:10

Tague Griffith


I would like to make an update @Tague's answer (for RDB) and also adding a basic info for each.
Both of these are options if one has to choose persistence for Redis data.

RDB is for Redis Database Backup file.
RDB file is a dump of all user data stored in an internal, compressed serialization format at a particular timestamp which is used for point-in-time recovery (recovery from a timestamp).

AOF stands for Append Only File.
AOF is actually a persistence technique in which an RDB file is generated once and all the data is appended to it as it comes.

like image 41
swayamraina Avatar answered Oct 19 '22 10:10

swayamraina