java - 用了redis还需要MySQL或者Oracle之类的数据库吗
怪我咯
怪我咯 2017-04-17 17:35:18
0
12
1076

如题 像一些大并发访问的如新浪微博应用了redis 我想知道数据都存储在redis里面吗 还有没有用非nosql数据库来存储数据

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(12)
小葫芦

Redis is generally used for caching. If you need persistent storage, you will definitely need a database like mysql

黄舟

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

伊谢尔伦

Must be required. nosql is not suitable for all development scenarios.
And the persistence of redis is not absolutely perfect

黄舟

http://blog.jobbole.com/83459/
I recommend reading this!

大家讲道理

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.

大家讲道理

Front-end reads data from redis
Backend operations use mysql
Backend mysql synchronizes to redis
Front-end redis data queue to mysql

阿神

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

大家讲道理

That’s necessary

洪涛

Redis is a cache, and the cache is not a place for persistence. The database is

小葫芦

Persistence is necessary

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template