查了很多资料,有点懵。
如果同时使用Mongodb和Redis会不会功能重复呢?
个人想法是Mongdb当数据库使用,然后Redis用来缓存Top10的热门数据和Session。
但是我看的资料说Mongodb也可以缓存这些。然后我就疑惑了。求指教。
高洛峰2017-05-02 09:22:10
Mongdb is used as the database, and Redis is used to cache the Top 10 popular data and Session. It is right
Mongodb is used as a persistent database, and redis is used as a memory cache database
PHPz2017-05-02 09:22:10
It is recommended to refer to the stress level of your own system.
MongoDB itself has a strong ability to withstand pressure, so there is no need to add caching when it is not completely necessary, which can save a lot of development and operation and maintenance workload. It's not too late to add more when you really need it.