码迷,mamicode.com
首页 > 数据库 > 详细

When to Redis ? when to MongoDB?

时间:2015-04-03 10:57:11      阅读:155      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!