[cgiapp] mod_perl vs. FastCGI

Benjamin Hitz hitz at genome.stanford.edu
Mon Feb 9 16:48:43 EST 2009


On Feb 9, 2009, at 10:47 AM, Peter Karman wrote:

> Benjamin Hitz wrote on 02/09/2009 12:30 PM:
>>
>> 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.
>
> I recommend the "in principle" part. I run all my fastcgi apps using  
> the
> ExternalServer option, which I found well documented at the fastcgi
> site. That lets me stop/start the app independently of apache, which  
> is
> nice for rolling out new versions, etc.


Thanks Peter, I will check it out.  Restarting apache takes about 1  
second for us (obviously, we do this on a development machine/ 
development web server)

Ben

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





More information about the cgiapp mailing list