Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 11 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
好吧,不是一本书,但我最近在 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.
我不知道有什么书,我想亚马逊的快速搜索就能找到它。
最重要的是,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.很久以前就有人问过这个问题,从那以后,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