1.什么场景适合redis?
2.什么场景适合mongodb?
3.什么场景是不适合用kv型数据库来做的?
4.SNS型网站是否可以完全放弃关系型数据库?
5.B2C型网站是否可以尝试用kv型数据库来做?
大家讲道理2017-04-21 10:59:23
1.redis is similar to membercache and can be used as a sustainable cache. It is rarely used as a database alone
2.mongodb is similar to mysql and has good scalability
3. Systems involving associative operations
4. Yes, but they will be used in conjunction
5. Yes, in some data
大家讲道理2017-04-21 10:59:23
Redis is used where IO may be a bottleneck. It stores data that is always read and written from the hard disk to reduce hard disk IO overhead. It can be regarded as a cache. Redis was born to improve IO speed.
MongoDB can store massive amounts of data. After all, it is a hard disk database, which is different from Redis. The speed is also very fast (if the index is built correctly), of course, this is compared with other hard disk databases.
Since I started using the non-relational style, I have never used the relational style again.
It is estimated that pure KV cannot satisfy it. After all, query is also a rigid requirement.
@michel yang: It’s MemoryCache, right?
PHP中文网2017-04-21 10:59:23
I think apps and e-commerce can do this
1. You can use mongodb for all product data, including attribute search
2 Product price data can also be used with mongo, including complex promotions, full discounts, restrictions, and group purchases
3 Order data also needs to use mysql relational data
4 User data can actually be generated using mysql,
5 comments using mongo