Back to Developer Roadmap

Data Persistence Options

src/data/roadmaps/redis/content/[email protected]

4.0627 B
Original Source

Data Persistence Options

Redis offers two main data persistence options: RDB (Redis Database) snapshots and AOF (Append-Only File). RDB creates point-in-time snapshots of the dataset at specified intervals, making it suitable for infrequent backups but with potential data loss between snapshots. AOF logs every write operation and replays them on restart, providing more durable persistence with finer control over data recovery. You can also configure Redis to use both methods for a balance between fast recovery and minimal data loss. Additionally, Redis supports running in memory-only mode without persistence.