Matthew Byng-Maddick wrote:
>
> This is (in my mind) currently the most broken bit of modperl, because of
> the hacks you have to do to make it work. With a proper API for content
> filtering (apache2), it will be fantastically clean, but at the moment... :-(
The hacks are getting neater, but yes, proper content filtering support will be
wonderful. ^_^
> The fastcgi can run in a different apache again, potentially, it doesn't
> matter (unless I'm misunderstanding something you wrote)
I'm not sure you understand how the FastCGI works.
Apache has "mod_fcgi" (or was it mod_fastcgi?) which is a lightweight
dispatcher - it interfaces to FastCGI applications. The FastCGI applications
are separate processes, running as daemons. The handling of the FastCGI daemons
can be done statically (eg; "run 5 instances of this app"), or dynamically
(increase/decrease daemons based on load automatically).
So, if I have an Apache server, with a hefty Perl App that takes up 10Mb RAM,
then an Apache server with 50 daemons would take 500Mb. Having that app as a
FastCGI and limiting it to 5 daemons would mean only 50Mb of RAM is required,
but only 5 of those 50 daemons could access the application at a time - but
those other daemons can do other things, like dish up static content, access
other FastCGIs, etc...
What's more, you can host FastCGI apps on different hosts, and there's a common
protocol between webserver and CGI, so you can write the CGIs in any language,
and have them work with any webserver with FastCGI support.
IMHO, FastCGIs are a better way of doing applications, but don't have the
versatility mod_perl has of digging into Apache internals. Don't get me wrong,
most of what I do is in mod_perl, but part of that is because it's harder to
layer content from multiple FastCGIs.
--
. Trevor Phillips - http://jurai.murdoch.edu.au/ .
: CWIS Systems Administrator - [EMAIL PROTECTED] :
| IT Services - Murdoch University |
>------------------- Member of the #SAS# & #CFC# --------------------<
| On nights such as this, evil deeds are done. And good deeds, of /
| course. But mostly evil, on the whole. /
\ -- (Terry Pratchett, Wyrd Sisters) /