Skip to content

Redis persistent storage (RDB and AOF)

Redis persistent storage refers to the mechanisms used by Redis to save data to disk, ensuring that data is not lost in the event of a process failure or system reboot. Redis supports two primary persistence methods: RDB (Redis Database) and AOF (Append Only File).^[600-developer-big-data-redis-redis-01-install.md]

RDB (Redis Database)

The RDB mechanism performs point-in-time snapshots of your dataset at specified intervals.^[600-developer-big-data-redis-redis-01-install.md] It creates a single compact file containing the entire database state at a specific moment, which is efficient for backup and disaster recovery scenarios.

AOF (Append Only File)

The AOF mechanism logs every write operation received by the server.^[600-developer-big-data-redis-redis-01-install.md] These operations are appended to a file in a format similar to the Redis protocol itself. As data is modified, the log grows, and Redis can rewrite this file in the background to keep it compact.

  • [[Redis]]
  • [[Database backup]]

Sources

  • 600-developer-big-data-redis-redis-01-install.md