Thank’s for your answer.

I will make a poc with.

Jérémy

Le 18 avr. 2019 à 10:40, Bogdan Zlatanov 
<bogdan.zlata...@gmail.com<mailto:bogdan.zlata...@gmail.com>> 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 
<jeremy.dero...@ingencys.net<mailto:jeremy.dero...@ingencys.net>> 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      
(Webobjects-dev@lists.apple.com<mailto:Webobjects-dev@lists.apple.com>)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/bogdan.zlatanov%40gmail.com

This email sent to bogdan.zlata...@gmail.com<mailto:bogdan.zlata...@gmail.com>

 _______________________________________________
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