search

Home  >  Q&A  >  body text

java - 用了redis还需要MySQL或者Oracle之类的数据库吗

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

怪我咯怪我咯2771 days ago1073

reply all(12)I'll reply

  • 高洛峰

    高洛峰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

    reply
    0
  • 黄舟

    黄舟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

    reply
    0
  • 伊谢尔伦

    伊谢尔伦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

    reply
    0
  • 黄舟

    黄舟2017-04-17 17:37:18

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

    reply
    0
  • 大家讲道理

    大家讲道理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.

    reply
    0
  • 大家讲道理

    大家讲道理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

    reply
    0
  • 阿神

    阿神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

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-17 17:37:18

    That’s necessary

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 17:37:18

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

    reply
    0
  • 高洛峰

    高洛峰2017-04-17 17:37:18

    Persistence is necessary

    reply
    0
  • Cancelreply