Django Asynchronous Processing

Posted by freyrs on Stack Overflow See other posts from Stack Overflow or by freyrs
Published on 2010-12-26T21:45:43Z Indexed on 2010/12/26 21:54 UTC
Read the original article Hit count: 263

Hello all,

I have a bunch of Django requests which executes some mathematical computations ( written in C and executed via a Cython module ) which may take an indeterminate amount ( on the order of 1 second ) of time to execute. Also the requests don't need to access the database.

Right now everything is synchronous ( using Gunicorn with sync worker types ) but I'd like to make this asynchronous and nonblocking.

I am very new to asynchronous Django, and so my question is what is the best stack for doing this.

Is this sort of process something a task queue is well suited for? Would anyone recommend Tornado + Celery + RabbitMQ, or perhaps something else?

Thanks in advance!

© Stack Overflow or respective owner

Related posts about django

Related posts about asynchronous