O'Reilly logo

Instant Redis Persistence by Matt Palmer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Point-in-time recovery (Simple)

For many applications, absolute data consistency isn't a mandatory requirement, but you need to ensure that you don't lose too much in the event of an unexpected restart. In this case, you can use RDB dumps to get simple, space-efficient, point-in-time snapshots of the state of your data at that time.

In the good ol' days, storing periodic dumps of the Redis dataset to the disk was the only way you could persist your data across a restart. While Redis has accumulated other ways of keeping your data safe, the point-in-time snapshot is still a valid and valuable persistence method in certain circumstances.

How it works is simple. Redis keeps a counter for how often the dataset changes. You can tell Redis that after ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required