Hi Jérémy,

you could achieve that by Wonder means with ERJGroupsSynchronizer that has a 
postRemoteNotification method. If you receive that notification you would then 
clear your Map objects.

jw


> Am 18.04.2019 um 08:35 schrieb Jérémy DE ROYER <jeremy.dero...@ingencys.net>:
> 
> 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      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to