如题 像一些大并发访问的如新浪微博应用了redis 我想知道数据都存储在redis里面吗 还有没有用非nosql数据库来存储数据
高洛峰2017-04-17 17:37:18
Redis is generally used for caching. If you need persistent storage, you will definitely need a database like mysql
黄舟2017-04-17 17:37:18
Depends on the scenario, redis seems to be able to persist, although I don’t know if it can have the reliability of a relational database
Complex logic must be uploaded to the database
伊谢尔伦2017-04-17 17:37:18
Must be required. nosql is not suitable for all development scenarios.
And the persistence of redis is not absolutely perfect
大家讲道理2017-04-17 17:37:18
To compare whether it can be replaced, we need to find out three important points:
1. There are still problems with Redis data persistence.
2. Strict transaction ACID is not supported
3. Complex condition queries are not supported.
大家讲道理2017-04-17 17:37:18
Front-end reads data from redis
Backend operations use mysql
Backend mysql synchronizes to redis
Front-end redis data queue to mysql
阿神2017-04-17 17:37:18
Required.
In the production environment, redis is mostly used for cache or queue, and data storage still needs to be placed in a relational database such as mysql
PHP中文网2017-04-17 17:37:18
Redis is a cache, and the cache is not a place for persistence. The database is