IDependOn-Set: 1
IDependOn-Set: 2
IDependOn-Set: 230
IDependOn-Set: 250
IDependOn-Set: 254
LastModifiedSecs: 931902683
Parent: 230
SequenceNumber: 3
Title: Apache JServ vs. mod_perl
Part: 0
Author-Set: jon@working-dogs.com
HideAttributions: 1
LastModifiedSecs: 931900381
Type: monospaced
Lines: 39


----------
From: Dave Paris <spider@w3works.com>
To: Java Apache Users <java-apache-users@list.working-dogs.com>
Subject: Re: Jserv v.s. mod_perl
Date: Tue, Jul 13, 1999, 1:37 PM


It's going to be a very tough sale (and an almost completely uphill
battle) to sell JServ to an existing mod_perl shop.

If they're good enough to use mod_perl effectively, they're undoubtedly
good enough to use the C API for Apache as well.  .. and they probably
aren't going to be very keen on developing a whole new skill set to do
the same thing in a different manner. (read:  lateral shifts don't
benefit anyone)

If anything .. and this isn't taking sides .. but I dare say mod_perl is
more mature than JServ and more tightly integrated into the core of
Apache.  I may well be wrong on this account, but that's what my gut is
telling me.  

JServ has it's place and mod_perl has it's place .. just don't try to
shove the sqare peg into the round hole - you'll only succeed in pissing
off the peg and offending the hole.

-- dsp

> At 09:13 AM 7/13/99 -0700, you wrote:
> >I am trying to convince other members of my project to
> >replace mod_perl with  Apache/Jserv. Currently we
> >have mod_perl and using Perl DBI/DBD to do database
> >connection. What's the advantages of Jserv over
> >mod_perl in terms of performance and functionalities?
> >
> >
> >Yang-Chao

EndPart: 0
Part: 1
Author-Set: jon@working-dogs.com
HideAttributions: 1
LastModifiedSecs: 931902683
Type: monospaced
Lines: 55

----------
From: Guy Mac <guym@astronomica.org>
To: Java Apache Users <java-apache-users@list.working-dogs.com>
Subject: Re: Jserv v.s. mod_perl
Date: Tue, Jul 13, 1999, 2:46 PM


On Tue, 13 Jul 1999, Yang-Chao Lin wrote:

> I am trying to convince other members of my project to
> replace mod_perl with  Apache/Jserv. Currently we
> have mod_perl and using Perl DBI/DBD to do database
> connection. What's the advantages of Jserv over
> mod_perl in terms of performance and functionalities?
> 
> 
I have a good deal of experience with mod_perl and DBI, and now a bit with
ApacheJserv and servlets. Mod_perl is very fast, for simple tasks even
faster than static html. Servlets are a good deal slower than this. If
you're interested, I have the numbers from a JMeter relative comparison of
static html vs. C cgi vs. Perl cgi vs. mod_perl vs. servlets -- although
this is highly dependent on what you are actually serving. In my test it
was just a print out of 'hello world' to get an idea of the raw speed
differences in the simplest case.

It's also my opinion that mod_perl leads in terms of functionality, given
that you can essentially control every aspect of Apache through mod_perl,
and given all the excellent free third-party modules available for perl
(CPAN).

So I'd say it comes down to a language preference issue. One big advantage
of java is the ease of multithreaded programming. Perl is just beginning
to have provide an API for thread control. So if your tasks can really
benefit from threads, jserv may be advantageous for you.

Java of course excels at OOP. Object programming is possible in perl as
well, but it's not quite as clear cut (to say the least). So if your
project could benefit from an extensible object-oriented design, java
jserv would be the way to go.

Another issue is portability. Mod_perl works only with Apache
currently while jserv servlets will run on any web server that offers a
JSDK 2.0 environment.

I'm not familiar with JDBC so I won't comment on its merits vs. DBI.

Hope that helps. My feeling is there are cases / situations / tasks
on the server side where perl is clearly the best way to go, others where
java can provide a better design. But it's probably as much or more a case
of what the developer thinks than the virtues of either language.

--
Guy "Smiley" McArthur
[email] guym@astronomica.org  [web] www.seds.org/~smiley   [icq] 17470307
EndPart: 1
