I have some questions for REDIS DB:
Ever Thanks for a possible feedback
best regards - SB -
If your computer running Redis stops, your power line fails, or you accidentally kill -9 your instance, the latest data written to Redis will be lost. While this may not be a big deal for some applications, there are use cases for full durability, and in these cases Redis snapshotting alone is not a viable option.
Redis is not usually deployed as a "durable" datastore (in the sense of the "D" in ACID.), even with journaling. Most use cases intentionally sacrifice a little durability in return for speed.
Redis transactions are not fully ACID compliant ( Atomicity, Consistency, Isolation, and Durability). If ACID transactions are expected, Redis is not the perfect fit and should not be used. An RDBMS or another database system should be used in those scenarios.
Redis is a key/value store on steroids, not a relational database.
How to ensure data integrity? Are there methods ensure the integrity?
Redis supports different persistence options from the "non safe but very efficient" up to the "safe but not very efficient". See more information at:
Redis also supports a master-slave replication mechanism to protect the data in case of complete node failure.
A single Redis instance always provides data consistency (in the sense of the CAP theorem, not in the sense of ACID).
Does Redis primary key? or alternatives
Redis is a key/value store. All items have a key. There is no concept of primary or secondary key.
Foreign key? Referential Integrity?
These are relational concepts. Redis is not a relational database. Foreign key means nothing (there is no table concept with Redis). Referential integrity is not maintained by Redis, and must be enforced by the client application.
How are the ACID properties to be implemented?
They are not supposed to be implemented since Redis is not a transactional database. There is no rollback mechanism with Redis. However, in term of ACID properties:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With