On Tuesday 22 January 2002 15:37, you wrote:

> > On Tue, Jan 22, 2002 at 04:06:00PM -0500, Gianni Johansson wrote:
> > Right now Tavin and I are the only ones writing servlets, but I imagine
> > that will soon change because they are a powerful way of writing cross
> > platform Freenet applications.  If we start down the slippery slope where
> > every servlet is loaded into Fred's JVM, we are setting ourselves up for
> > stability problems down the road.
>
> If a servlet doesn't need to be in Fred's JVM, it should obviously be
> implemented as a FCP client. 
External servlets are FCP clients.

> The only reason we made an exception for
> FProxy was because we knew that people would almost always want to run
> it with Fred, and so we should make it as resource efficient as possible
> (running it separately would require a separate JVM which would be a
> serious resource hog).
(see below)
>
> nodestatus is an example of a "true" servlet, since they can't get the
> information they need via FCP.
>
> To reiterate, holding the option open for servlets to run outside Fred's
> JVM is pointless, since if the servlet doesn't need to be part of the
> JVM, then it shouldn't be a servlet, it should be an FCP client.
>
This is quite an overstatement.

I respectfully disagree.  Here are some examples of cool things you could do
with servlets.

- ThinkCash submission forms
- Freenet webcam
Servlet prefetches the next picture on a DBR, but displays the last known 
good one if the current one can't be found.
- TOF submission servlet

Do you want to arbitrarily prevent people from doing things like this, even 
though the architecture makes it easy?

If not, I'm sure that other people will come up with many many other ideas.  
When a typical installation contains 5-10 third party servlets, consider 
whether you want all that code of unknown quality running in the same JVM as 
Fred.

If we need to keep fproxy in the same JVM as Fred we can come up with
some way to alias the references to external third party servlets so that 
they work from HTML displayed by fproxy, but we shouldn't kill the whole idea 
of third party servlets by fiat. Nor should we allow them to destabilize Fred.

--gj


_______________________________________________
Devl mailing list
Devl at freenetproject.org
http://lists.freenetproject.org/mailman/listinfo/devl

Reply via email to