“排队”教程和文档?
我正在寻找概述“排队”的文章和参考文献(我什至可能没有在这里使用正确的术语)。我希望有一个介绍性的指南,介绍 Redis、RabbitMQ、Celery、Kombu 以及我尚未读过的任何其他组件的世界,以及它们如何组合在一起。
我的问题是我需要对我的 Django 网站发布的后台任务进行排队,并且我阅读的每一篇博客和文章都推荐不同的解决方案。
I'm looking for articles and references that give an overview of 'queueing' (I'm probably not even using the right term here). I'm hoping for an introductory styled guide through a world of Redis, RabbitMQ, Celery, Kombu, and whatever other components exist that I haven't read about yet, and how they fit together.
My problem is I need to queue up background tasks for issued by my Django website, and every blog and article I read recommend different solutions.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以使用很多选项,您的选择可能取决于个人喜好以及您觉得安装的依赖项。
我会给Redis投一票。我评估了 RabbitMQ、ActiveMQ、HornetQ 和 Redis,发现 Redis 提供了易于安装、简单性和性能的最佳组合。
从技术上讲,它不是消息队列,但列表类型的推送/弹出原语提供了类似队列的原子操作,因此它可以有效地用作队列。它对我们来说效果很好。
您可以查看 Redis 之上的一个特定于 Python 的项目:
http://richardhenry.github.com/ hotqueue/tutorial.html
非常简单。但同样,所有其他选择,如 Celery,也是可行的。
Lots of options available to you, and your choice will likely come down to personal preference and what dependencies you feel comfortable installing.
I'll give a vote for Redis. I evaluated RabbitMQ, ActiveMQ, HornetQ, and Redis and found Redis to offer the best mix of ease of installation, simplicity, and performance.
It's technically not a message queue, but the push/pop primitives for the list types provide atomic queue-like operations, so it can effectively be used as a queue. It has worked well for us.
One python specific project on top of Redis you might look at:
http://richardhenry.github.com/hotqueue/tutorial.html
Very simple. But again, all the other options, like Celery, are viable too.
RabbitMQ 这里有一个很好的介绍: http://www.rabbitmq.com/getstarted.html 有甚至还有 Python 中的例子。
RabbitMQ has a good introduction here: http://www.rabbitmq.com/getstarted.html There's examples in Python, even.
HornetQ 有非常好的文档,而且安装也很简单。
您可以在 www.hornetq.org 上找到该文档,并且您可以在该发行版中找到几个可用的示例。
HornetQ has a very good documentation, and it's simple to install.
You can find the documentation at www.hornetq.org, and you would have several examples available with the distribution.