[OFBiz] Dev - load balancing with entity engine cache
Adam Heath
doogie at brainfood.com
Sun Apr 17 18:38:12 EDT 2005
On Sun, 17 Apr 2005, Mark Gordon wrote:
>
> I am using the Ofbiz Entity Engine and Service Engine for converting a
> legacy system to a web application.
>
> We are using Tomcat 5.5.7 for the servlet container and HTTP server.
> Stand along tomcat can load balance with more then one server and
> passing the user to the correct server.
>
> I see that it would be possible to use the entity engine with load
> balancing as long as you didn't access values in the cache. Is there a
> way to configure the entity engine in a load balanced environment and
> still be able to use the cache?
>
> Thanks for any input.
Look in entityext, there are distributed cache clearing stuff. When I
modified the cache system heavily last summer, I modified those classes too,
but haven't actually tested them in a real cluster.
In effect, each node will have it's own cache, and when a node writes to the
database, will clear it's cache, and send an event to other nodes to clear
their caches as well.
More information about the Dev
mailing list