If you really want speed, you should be writing to your Web server's API
with 'C'.
I think the underlining question is:
Does it make sense from a development and maintenance point of view
to incorporate related functions of a Web application into one servlet
or have many servlets?
Since you have probably done the one servlet - one function approach,
there are a couple of frameworks being developed that will help you
decide if a multi-function servlet is worthwhile.
ServletActionBroker Framework
http://www.gallaware.com/software/ServletActionBroker
Web AppFramework http://www.webapp.de
Frameworks involve a little more work up front but are beneficial in the
long run.
In general, I create a servlet that handles the functionality of a
single class with the use of the ServletActionBroker Framework. If the
class provides many functions, then so does the servlet.
Tim Gallagher
-----Original Message-----
From: Rogatkin, Dmitry [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 23, 1999 7:44 PM
To: [EMAIL PROTECTED]
Subject: delema: one servlet - one function, or one servlet many
functions?
Did somebody investigate which way is faster, when a web server selects
a servlet from a list, or when a servlet decides that, for example
/servlets/servlet1?someparams-for-function1
/servlets/servlet2?someparams-for-function2
/servlets/servlet3?someparams-for-function3
or
/servlets/servlet?do-function=1&someparams-for-function1
/servlets/servlet?do-function=2&someparams-for-function2
/servlets/servlet?do-function=3&someparams-for-function3
Thanks,
Dmitry.
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html