Load Balancing and Caching
Load Balancing and Caching
- Subject: Load Balancing and Caching
- From: Jérémy DE ROYER <email@hidden>
- Date: Thu, 18 Apr 2019 06:35:57 +0000
- Thread-topic: Load Balancing and Caching
Hi all,
After the presentation of Dennis, I was digging the use of load balancing and
was wondering how (or is) the cache inside the Application class (that extends
WOApplication) synchronized.
Indeed we use Map(s) (more exactly ConcurrentHashMap) to cache some stuffs
inside the app and reduce the needs of fetch or DeXMLization on objects that
are (quite) never updated.
As soon as they are updated, we send a reset to the Map and the next time a
session ask the map, it does a fetch or DeXMLization before caching it.
That works quite well and we reduce drastically the use of cpu (both app and
database).
But… if we use load balancing, we will have as many Application instances as
WebObjects instances so :
a) does the wonder of WebObjects has a beautyfull method to synchronize Map(s) ?
b) how can we propagate the reset to all the Application
Thank’s for any lighting on this point.
Jérémy
P.S. :
* please don’t tell me it only works with NSDictionary ;-)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden