[cgiapp] mod_perl vs. FastCGI

Benjamin Hitz hitz at genome.stanford.edu
Mon Feb 9 13:30:40 EST 2009


We have converted a plain cgi app under CGI::App (no dispatch) to run  
under FCGI without much difficulty (Solaris).  The biggest problem I  
had was some "mixed" apps where I was creating 2 distinct DBI database  
handles.  Once I got it down to 1, everything worked well.

Primary gain is start up time from stuff like DBIx::Class (but  
CGI::App and even perl are kinda heavy weight).

We still have to restart apache to debug it, although "in principle"  
you don't.

Ben

On Jan 19, 2009, at 8:57 AM, fREW Schmidt wrote:

> Someone earlier mentioned that FastCGI adds a good layer between
> apache and the application.
>
> The main issues I have with mod_perl is that even with Apache2::Reload
> I still get errors and have to restart the server while I am
> developing.  I think the issue has something to do with the way that
> Autorunmode is implemented.
>
>
> I also like the idea that with FastCGI we can switch back to IIS.  I
> am trying to convince my boss that Apache is a good option, but it
> would be nice to be able to switch back to IIS if there are issues.
>
> Anyway, I worry that I will keep having issues like this as I develop,
> and restarting the server every time I make a change (while in
> development of course) is just silly.  Does anyone know how hard it is
> to set up FastCGI with CGI::Application and
> CGI::Application::Dispatch?
>
>
> -- 
>
> -fREW
>
> #####  CGI::Application community mailing list  ################
> ##                                                            ##
> ##  To unsubscribe, or change your message delivery options,  ##
> ##  visit:  http://lists.openlib.org/mailman/listinfo/cgiapp    ##
> ##                                                            ##
> ##  Web archive:   http://lists.openlib.org/pipermail/cgiapp/   ##
> ##  Wiki:          http://cgiapp.erlbaum.net/                 ##
> ##                                                            ##
> ################################################################

--
Ben Hitz
Senior Scientific Programmer ** Saccharomyces Genome Database ** GO  
Consortium
Stanford University ** hitz at genome.stanford.edu





More information about the cgiapp mailing list