为姜戈预订芹菜 +兔子MQ?

发布于 2024-12-11 06:22:15 字数 1536 浏览 4 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

哭泣的笑容 2024-12-18 06:22:15

好吧,不是一本书,但我最近在 Dotcloud 中为 Django+Celery 进行了设置,这是简短的文档:
http://web .archive.org/web/20150329132442/http://docs.dotcloud.com/tutorials/python/django-celery/

它适用于异步运行的简单任务。有一个特定于 dotcloud 的设置,但其余的可能会澄清一些。 AFAIK,Celery 一开始与 Django 紧密结合,但后来变成了一种完全不同的动物,尽管它仍然保留了与 Django 的极好的兼容性。

Well not a book but I recently did setup in Dotcloud for Django+Celery, and here's the short doc:
http://web.archive.org/web/20150329132442/http://docs.dotcloud.com/tutorials/python/django-celery/

It's intended for simple tasks to be run asynchronously. There is a dotcloud-specific setup, but the rest might clear things up a bit. AFAIK, Celery started tightly coupled with Django but later became an entirely different animal, although it still retains superb compatibility with Django.

七婞 2024-12-18 06:22:15

我不知道有什么书,我想亚马逊的快速搜索就能找到它。

最重要的是,celery 作为单独的服务器运行,并且与 Django 一样适用于独立的 python 程序,因此它不直接与 Django 绑定。您还可以在多台计算机上运行 celeryd 工作软件,以便它们都可以同时处理同一队列。通常会运行一个单独的队列服务器(例如 RabbitMQ)来存储队列消息。

请记住,django-celery 只是一个集成应用程序,充当 Django 和 Celery 之间的粘合剂。

I don't know of a book, I guess a quick Amazon search would dig that up.

The bottom line is, celery is run as a separate server and works just as well for a standalone python program as Django, so it is not tied directly to Django. You can also run the celeryd worker software on multiple computers so they can all process the same queue concurrently. Often a separate queueing server, such as RabbitMQ is run to store the queue message.

Keep in mind, django-celery is just an integration app that acts as glue between Django and Celery.

绝不放开 2024-12-18 06:22:15

很久以前就有人问过这个问题,从那以后,celery 文档已经得到了显着的改进,最好从常见问题解答开始,以减少这种性质的查询。

http://docs.celeryproject.org/en /latest/faq.html#is-celery-for-django-only

This was asked a long time back and the celery docs have been significantly spruced up since, it'd be good to start with the FAQ's to allay queries of this nature.

http://docs.celeryproject.org/en/latest/faq.html#is-celery-for-django-only

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文