[Catalyst] Fast CGI vs ModPerl

Jonathan Rockway jon at jrock.us
Fri Dec 8 19:41:52 GMT 2006


> Which of Fast CGI and mod_perl do you recommend for using with Catalyst?

FastCGI.  The problem with mod_perl is that your application gets loaded
into *every single Apache process*, which is a waste of memory.   I
think mpm_event and mpm_worker mitigate this waste, but your app needs
to be thread-safe.

If you want to use mod_perl, the best thing to do is to setup two apache
instances -- one that serves static pages and proxies requests to the
backend, and one backend apache that runs mod_perl.  It's a solid setup,
but not the easiest thing to do.

I find fastcgi pretty easy to set up:

http://www.catalystframework.org/calendar/2006/4

-- 
package JAPH;use Catalyst qw/-Debug/;($;=JAPH)->config(name => do {
$,.=reverse qw[Jonathan tsu rehton lre rekca Rockway][$_].[split //,
";$;"]->[$_].q; ;for 1..4;$,=~s;^.;;;$,});$;->setup;



More information about the Catalyst mailing list