Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I use Celery or Carrot for a Django project?

I'm a little confused as to which one I should use. I think either will work, but is one better or more appropriate than the other?

http://github.com/ask/carrot/tree/master

http://github.com/ask/celery/tree/master

like image 703
rick Avatar asked Jul 09 '09 07:07

rick


People also ask

When should I use Celery Django?

If a long process is part of your application's workflow, you can use Celery to execute that process in the background, as resources become available, so that your application can continue to respond to client requests. This keeps the task out of the application's context.

Why is Celery used in Django?

Celery makes it easier to implement the task queues for many workers in a Django application.

Can I use Celery without Django?

Yes you can. Celery is a generic asynchronous task queue.

Do I need Celery Python?

Celery allows Python applications to quickly implement task queues for many workers. It takes care of the hard part of receiving tasks and assigning them appropriately to workers. You use Celery to accomplish a few main goals: Define independent tasks that your workers can do as a Python function.


2 Answers

If you need to send/receive messages to/from AMQP message queues, use carrot.

If you want to run scheduled tasks on a number of machines, use celery.

If you're making soup, use both ;-)

like image 146
Vinay Sajip Avatar answered Oct 07 '22 19:10

Vinay Sajip


May you should see this http://www.slideshare.net/idangazit/an-introduction-to-celery

like image 20
diegueus9 Avatar answered Oct 07 '22 17:10

diegueus9