Summary
Redis not only can be adopted safely as a primary database in many use cases, but it is also the best option in many terms. Secondary indexing of Hash and JSON documents together with the ability to perform complex and hybrid multi-field queries and with basic analytical processing capabilities makes Redis, Redis Stack, and the commercial Enterprise and Cloud versions full-fledged data management systems with full support for scalability and availability. While NoSQL databases don’t generally fulfill the ACID properties but privilege availability over consistency, we have gone through the assumptions that help maximize the consistency of Redis databases against crashes, either in the standalone or replicated deployments.
Compromising on data integrity, consistency, and durability may not be an option, and in this chapter, you have learned to achieve the most durable configuration in Redis with the safest (but much less performing) AOF persistence policy. You have...