When to Redis ? when to MongoDB?

 

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

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。