[Baypiggies] Asynchronous web tasks
Dirk Bergstrom
dirk at otisbean.com
Thu Feb 2 18:19:53 CET 2012
On 02/02/2012 08:28 AM, Meenal Pant wrote:
> I use Django in production and now have a need to perform asynchronous
> backend tasks that
> a. Are some scheduled jobs
> b. Jobs triggered via a user input via Django frontend.
> I have been thinking of using twisted or message queues (RabbitMQ and
> celery) to achieve this. From my research so far:
> I am looking for some opinions /recommendations to use one of these two
> technologies or something else altogether ?
How's about cron for a and subprocess.Popen for b?
Start with the simplest implementation that will work, and only move to
something complicated if you desperately need it. Adding another
heavyweight set of libraries to a Django app is not going to help you
get more sleep at night.
--
Dirk Bergstrom
dirk at otisbean.com
http://otisbean.com/
More information about the Baypiggies
mailing list