[Catalyst] Help on Catalyst::Plugin::RunAfterRequest

John Napiorkowski jjn1056 at yahoo.com
Tue Oct 7 15:53:56 GMT 2014

Although that plugin might have some convenience value for development, I can't see using it for real work.  If you need to process long running tasks your best best is a job queue.   You can setup one or use one of many available infrastructure as a service systems. (see Iron.io. etc)


On Monday, October 6, 2014 8:53 AM, Antonio Soro <antonio.soro at koinesistemi.it> wrote:

I plan to run server code in asynchronous mode after a response back to the
client made from an action code in a Catalyst controller.

I'm using Catalyst::Plugin::RunAfterRequest plugin in a Catalyst 5.80
environment started in 'FastCGI' mode, called by Apache2 httpd server, with
FastCgiExternalServer directive of mod_fastcgi.c module (v2.4.6), in a Linux
UBUNTU box with Perl 5.12.4.

It seems, in that environment, response for client request occurs after long
time processing, differently that I run Catalyst Runtime in 'Server' mode
where response back to the client occurs immediately and long time processing
occurs delayed. 

Can somebody tell me this behavior is correct or there is something wrong?
Are there better methods to call long-time-running code across
Apache/FastCGI/Catalyst ?

Thanks for feedback.
Antonio Soro.

Questa comunicazione e ogni eventuale file allegato sono confidenziali 
e destinati all'uso esclusivo del destinatario. Se avete ricevuto 
questo messaggio per errore Vi preghiamo di comunicarlo al mittente e 
distruggere quanto ricevuto.

List: Catalyst at lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scsys.co.uk/pipermail/catalyst/attachments/20141007/b5c21979/attachment-0001.htm>

More information about the Catalyst mailing list