Re: WO blocking/threading question
Re: WO blocking/threading question
- Subject: Re: WO blocking/threading question
- From: Dov Rosenberg <email@hidden>
- Date: Mon, 16 Aug 2004 14:32:09 -0400
We do a lot of caching of data in our application to minimize the amount of
database interaction at runtime and to avoid concurrency issues with EOF. We
try to use SharedEditingContexts as much as possible since most of the data
is read-only thru our custom EOF based JSP tag library. We do not use any
session based editing contexts, we create and destroy them as needed.
The servlet adaptor itself seems pretty scalable. It seems much lighter
weight than the regular WO Adaptor, probably because it doesn't have to
worry about load balancing etc.
I have noticed that some servlet engines are significantly faster than
others. JRun 4 seems to run our app faster than Tomcat (haven't really
benchmarked since Tomcat 4.1.x though). I also like how easy it is to set up
clustering on JRun as opposed to Tomcat. With JRun you can almost create a
Monitor like installation (i.e. Multiple instances on a single server) using
the clustering.
We stumbled into some issues with editing contexts and the servlets/JSP.
Using the session based editing contexts caused us some issues initially
when we were trying to cache info (EOs). The Eos were retrieved in multiple
contexts causing all sorts of problems. We resolved that by getting a local
instance of the EO into the current editing context. In some cases we did a
very non EO thing by storing the GUID primary key of a retrieved EO.
With a lot of tuning and tinkering we have succeeded in scaling our EOF
access pretty well. 1 of our production servers hosts about 35 web sites
that generate nearly 1 million page views weekly with 95% idle time. We use
memory generously, but we have a lot of room to grow CPU wise.
--
Dov Rosenberg
Conviveon Corporation
http://www.conviveon.com
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.