Can redis fully replace mysql?

前端 未结 2 2179
梦如初夏
梦如初夏 2021-02-18 22:55

Simple question, could I conceivably use redis instead of mysql for all sorts of web applications: social networks, geo-location services etc?

2条回答
  •  独厮守ぢ
    2021-02-18 23:38

    ACID compliance is a must, if data integrity is important. Medical records and financial transactions would be an example. Most of the NoSQL solutions, including Redis, are fast because they trade ACID properties for speed.

    Sometimes data is simply more convenient to represent using a relational database and the queries are simpler.

    Also, thanks to foreign relationships and constraints in relational databases, your data is more likely to be correct. Keeping data in sync in NoSQL solutions is more difficult.

    So, no I don't think we can talk about full replacement. They are different tools for different jobs. I wouldn't trade my hammer for a screwdriver.

提交回复
热议问题