Dragonfly Cloud is now available in the AWS Marketplace - learn more

Question: Is Redis persistent?

Answer

Yes. Redis can persist. Redis is an open source, in-memory data structure store used as a database, cache, and message broker. Persistence means writing of data to durable storage, such as a solid-state disk (SSD). Redis provides different ways of persistence options. These include:

  • RDB (Redis Database Backup): RDB persistence performs point-in-time snapshots of your dataset at specified intervals. This is a very compact single-file point-in-time representation of your Redis data. RDB files are perfect for backups.

  • AOF (Append Only File): AOF persistence logs every write operation received by the server. AOF Redis is much more durable. AOF contains a log of all the operations one after the other in an easy to understand and parse format. You can even easily export an AOF file.

  • RDB + AOF: You can also combine both AOF and RDB in the same instance. In general you should use both persistence methods if you want a higher degree of data safety.

Was this content helpful?

White Paper

Free System Design on AWS E-Book

Download this early release of O'Reilly's latest cloud infrastructure e-book: System Design on AWS.

Free System Design on AWS E-Book

Switch & save up to 80% 

Dragonfly is fully compatible with the Redis ecosystem and requires no code changes to implement. Instantly experience up to a 25X boost in performance and 80% reduction in cost