Re: Load Balancing and Caching
Re: Load Balancing and Caching
- Subject: Re: Load Balancing and Caching
- From: Johann Werner <email@hidden>
- Date: Sat, 20 Apr 2019 11:52:26 +0200
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 <email@hidden>:
>
> 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