Look at the Celery project ( http://celeryproject.org/ ) to be sure it
fits your needs. You can easily integrate with Django by using
https://github.com/ask/django-celery .

You could also use a signal, listening for a request_finished, which
will run the task inside a Thread. Here's a concrete example of that:
http://www.artfulcode.net/articles/threading-django/ .

Kenny



2011/5/6 λq <lamb...@gmail.com>:
> Hi guys,
>
> We have a django product running, one of the view is to track each
> request of news and write to MySQL, so when user grows the track
> read/write became heavy and it may take a while for the user to get a
> response. So we are thinking about something like async worker process
> to do the MySQL write task but give the client a quick response first.
> Something like a Message Queue. What is currently the best practice
> for Django 1.2 for these kind of stuff?
>
> Thanks in advance.
>
> Regards,
>
> λq
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to