It's better if you run your background tasks on different process. Generally 
twisted python or nodejs can make it simple as they treat each and every event 
call back as a call for different process. Don't load your server with these 
tasks. it always should do its job between the request and response.

-K

On 17-Oct-2011, at 12:44 AM, ravi teja <[email protected]> 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 [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/pylons-discuss?hl=en.
> 

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

Reply via email to