Before you reinvent the wheel, do take a look at Celery ( 
http://celeryproject.org/
). I have been using it for all sorts of background/async processing
tasks ranging from sending emails to Twitter posting.

It was originally created in the Django world but can be easily
integrated with Pyramid, just define your task and do anywhere in your
view --

DownloadImageTask.delay(image_url)

for the task to be picked and handled by a standalone celeryd process.

Jerry

On Oct 17, 3:14 am, ravi teja <raviteja2...@gmail.com> wrote:
> Hi,
>
> I would like to do some background processing (like downloading the image, 
> caching the data etc.) after I send the response for the request.
>
> Which is the recommended way to do it?
>
> Does response callback work for this? Should I use a messaging queue to 
> provide the handling to another service?
>
> Thanks in advance,
> Ravi

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

Reply via email to