Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re^3: Catalyst vs CGI::Application

by dragonchild (Archbishop)
on Oct 17, 2007 at 17:25 UTC ( #645520=note: print w/replies, xml ) Need Help??

in reply to Re^2: Catalyst vs CGI::Application
in thread Catalyst vs CGI::Application

CgiApp will have a smaller footprint as it uses less modules and, frankly, does less. That said, the Catalyst devteam is very keen on scaling. Now, a major piece of this is how you deploy. Most CgiApp deployments that I've seen/heard about are done under mod_perl. Catalyst tends to deploy under FCGI. That can make a huge difference in your overall memory footprint (MP is often better) and scalability (FCGI is designed around scalability). As for HUGE number of hits, I'd say they can both handle it.

And, if expressivity wasn't important, you'd be using C and not Perl. Plus, Lisp often beats out C in the Language Shootout. We don't use Lisp because it's not fashionable enough to have a big enough ecology around it. Perl is Lisp minus a few features, but plus CPAN. Perl 6 is meant to be Lisp + CPAN, no minuses.

My criteria for good software:
  1. Does it work?
  2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?

Replies are listed 'Best First'.
Re^4: Catalyst vs CGI::Application
by perrin (Chancellor) on Oct 17, 2007 at 19:24 UTC
    The process model of FastCGI and mod_perl with a fornt-end proxy are nearly identical, so I expect the memory footprint and scalability will be the same, unless the particular application is somehow able to take advantage of some special capability unique to one of these platforms.
      The difference is that mod_perl requires Apache to be running and FCGI doesn't. Thus, you can scale FCGI onto an app server and leave Apache on the webserver while appservers for mod_perl require Apache to be running.

      My criteria for good software:
      1. Does it work?
      2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?
        No, it's the same. FastCGI has some code that runs a daemon around your perl code. In mod_perl, apache is that daemon. When you run a front-end proxy, your proxy is the web server and the mod_perl server is nothing but a perl daemon, just like FastCGI.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://645520]
[Corion]: The upside to this is that I've reduced my $work (well, $paid) time to 80%, so I'll be at $work only four days/week, which will hopefully make the crunch less crunchy on me ;)
[marto]: yeah, so that stays as before. But before the boys were born I'd be on quite often at night (GMT) also
[marto]: I had the option during our TUPE transfer to buy 5 more days holiday. They were shocked when I did :P

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2017-06-29 08:27 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (655 votes). Check out past polls.