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] [EMAIL PROTECTED] [web] www.seds.org/~smiley [icq] 17470307
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
READ THE FAQ!!!! <http://java.apache.org/faq/>
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]