首页 > 数据库技术 > 详细

When to Redis ? when to MongoDB?

时间:2015-04-03 10:55:57      阅读:287      评论:0      收藏:0      [点我收藏+]

 

120down voteaccepted

I would say, it depends on kind of dev team you are and your application needs.

For example if there are more querying required, it mostly means more work in Redis, where you can use different data structures to suit your queries. Same is easier in MongoDB. On other hand this is often extra work in Redis would most likely to pay off with sheer speed.

MongoDB offers simplicity, much smaller learning for guys with SQL experience. Whereas Redis offers non-traditional approach hence more learning but huge flexibility.

Eg. A cache layer can probably be better implemented in Redis, and as for a more schema-able data MongoDB might be better. [Note: mongodb is schemaless]

If you ask me my personal choice is Redis for most requirements.

Lastly, I hope by now you have seen http://antirez.com/post/MongoDB-and-Redis.html

When to Redis ? when to MongoDB?

原文:http://www.cnblogs.com/haoliansheng/p/4389324.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!