Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Redis Stack for Application Modernization

You're reading from  Redis Stack for Application Modernization

Product type Book
Published in Dec 2023
Publisher Packt
ISBN-13 9781837638185
Pages 336 pages
Edition 1st Edition
Languages
Authors (2):
Luigi Fugaro Luigi Fugaro
Profile icon Luigi Fugaro
Mirko Ortensi Mirko Ortensi
Profile icon Mirko Ortensi
View More author details

Table of Contents (18) Chapters

Preface 1. Part 1: Introduction to Redis Stack
2. Chapter 1: Introducing Redis Stack 3. Chapter 2: Developing Modern Use Cases with Redis Stack 4. Chapter 3: Getting Started with Redis Stack 5. Chapter 4: Setting Up Client Libraries 6. Part 2: Data Modeling
7. Chapter 5: Redis Stack as a Document Store 8. Chapter 6: Redis Stack as a Vector Database 9. Chapter 7: Redis Stack as a Time Series Database 10. Chapter 8: Understanding Probabilistic Data Structures 11. Part 3: From Development to Production
12. Chapter 9: The Programmability of Redis Stack 13. Chapter 10: RedisInsight – the Data Management GUI 14. Chapter 11: Using Redis Stack as a Primary Database 15. Chapter 12: Managing Development and Production Environments 16. Index 17. Other Books You May Enjoy

Configuring Redis for durability, consistency, and availability

For those scenarios where reliability matters besides availability, you can consider the following configurations.

Configuring snapshots

Snapshots (also called Redis database snapshots, or RDBs) provide a consistent binary dump of the data stored in the keyspace and are used to perform data recovery to a specific point in time. You should set the following in the configuration file:

save 900 1000
dbfilename "dump.rdb"

These settings enable snapshots every 900 seconds if at least 1,000 keys have changed. This kind of persistence is good for point-in-time restores and is also considered a backup. So, from time to time, you should copy the RDB snapshot file to an external storage device on a different, possibly remote host (invoking a script with cron, as an example) to discard major incidents affecting the local storage device. This method cannot be considered valid to achieve a good recovery point objective...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}