× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Nathan Andelin wrote:

In the case of Servlets, using a meta-data driven utility has the added
concern of scalability.  Say there are hundreds of users maintaining
hundreds of files.  Wouldn't channeling every request through one Servlet
offer a substantial bottleneck?

Hi,

Not really. As we all know the container doesnt have to create that servlet more than once, anything after that is threaded and quite fast. In fact Sun, IBM and others promote the Front-Controller Pattern which is exactly a Servlet (or a Filter) where everything is tunneled through. All Web Frameworks i am aware of rely on that pattern. You get many benefits when using this pattern, starting from easy configuration and authentication hooks, to a quite clean dispatching mechanism. There are all sorts of variants how to implement that pattern, but using Servlets is the most used.

So i wont call that a bottleneck, as long as you know what you do in that specific servlet. A lot of people create different entry servlets with the problem that its quite bad to maintain and it reduces the performance, because you have more object creation than with Front-Controller Pattern.

Marc Logemann

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.