何时Redis的?当到MongoDB的? [英] When to Redis? When to MongoDB?

查看:152
本文介绍了何时Redis的?当到MongoDB的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想是不是Redis的和MongoDB之间的比较。我知道他们是不同的;性能和API是完全不同的。

What I want is not a comparison between Redis and MongoDB. I know they are different; the performance and the API is totally different.

Redis是非常快的,但是API是非常原子。 MongoDB的会吃更多的资源,但是API是非常非常好用,我感到非常高兴。

Redis is very fast, but the API is very 'atomic'. MongoDB will eat more resources, but the API is very very easy to use, and I am very happy with it.

他们都真棒,我想在部署尽可能多的,因为我可以使用Redis的,但它是很难code。我想在开发中使用MongoDB的,就像我可以,但它需要一个昂贵的机器。

They're both awesome, and I want to use Redis in deployment as much as I can, but it is hard to code. I want to use MongoDB in development as much as I can, but it needs an expensive machine.

那你认为怎么样利用两个人的?当挑Redis的?当挑MongoDB的?

So what do you think about the use of both of them? When to pick Redis? When to pick MongoDB?

推荐答案

我会说,这取决于一种开发团队你和你的应用需求。

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

例如,如果有更多的查询必需的,它主要是指在Redis的,在那里你可以使用不同的数据结构,以满足您的查询更多的工作。同样是在MongoDB中更容易。在另一方面,这往往是Redis的额外的工作,将最有可能与绝对速度还清。

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中提供了简洁,与SQL经验的人少得多的学习曲线。而Redis的提供非传统的方式,因此多学习,但巨大的灵活性。

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

例如。 A 缓存层很可能在Redis的得到更好的实施,并作为一个更架构能够MongoDB的数据可能会更好。 [注:MongoDB是无模式]

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]

如果你问我,我个人的选择是Redis的大多数要求。

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

最后,我希望现在你已经看到了<一个href=\"http://antirez.com/post/MongoDB-and-Redis.html\">http://antirez.com/post/MongoDB-and-Redis.html

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

这篇关于何时Redis的?当到MongoDB的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆