Re: Load Balancing and Caching
Re: Load Balancing and Caching
- Subject: Re: Load Balancing and Caching
- From: Jérémy DE ROYER <email@hidden>
- Date: Thu, 18 Apr 2019 10:14:54 +0000
- Thread-topic: Load Balancing and Caching
Thank’s for your answer.
I will make a poc with.
Jérémy
Le 18 avr. 2019 à 10:40, Bogdan Zlatanov
<email@hidden<mailto:email@hidden>> a écrit :
I’d look at Hazelcast, if others don’t come up with something that’s already in
WO/Wonder.
Cheers
On 18. Apr 2019, at 08:35, Jérémy DE ROYER
<email@hidden<mailto:email@hidden>> wrote:
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<mailto:email@hidden>)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden<mailto:email@hidden>
_______________________________________________
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