Hello Bruce 

 

OK, thank you for this information. So I will directly access to the region 
through the mapping in the client cache.

I forget the map idea.

Thank you all (and Antony too) 

 

Best regards

 

Paul Perez Chief Architect

Pymma Consulting

--------------------------

Tel: +44 79 44 36 04 65 

Skype ID : polperez

 

From: Bruce Schuchardt <[email protected]> 
Sent: 18 August 2020 19:19
To: [email protected]; [email protected]
Subject: Re: Access to many region from one client cache

 

Hi Paul,

 

The client cache maintains a mapping from Region path to a Region 
implementation.  The getRegion(String) method goes through a few checks, so 
it’s not free, but it doesn’t involve any interaction with other processes.

 

From: Paul Perez <[email protected] <mailto:[email protected]> >
Organization: pymma
Reply-To: "[email protected] <mailto:[email protected]> " 
<[email protected] <mailto:[email protected]> >, "[email protected] 
<mailto:[email protected]> " <[email protected] 
<mailto:[email protected]> >
Date: Tuesday, August 18, 2020 at 8:21 AM
To: "[email protected] <mailto:[email protected]> " 
<[email protected] <mailto:[email protected]> >
Subject: Access to many region from one client cache

 

Hello All, 

 

In one of our development, the cache contains several regions and 
subregions—One of our services accesses to the regions and the subregions 
through a classical ClientCache.getRegion( Path). Once we get the region with 
the key, we get the value. 

 

The service parameters contain the region path and the key of the value we want 
to retrieve. So, for each service invocation, we plan access to the region 
through the method ClientCache.getRegion( Path) then get the value with the key 
Region.get (Key).

 

Our question: 

Is the method ClientCache.getRegion( Path) efficient enough to advise me to 
invoke ClientCache.getRegion( Path)  for each invocation? 

If not, is it is better to store the regions, in a lazy way, in a Map(< path>, 
< region>), and avoid a new connection to a region for each invocation. 

I have no idea how the process to get the region works in the deep. 

 

Thank you for your help

 

Best regards

 

Paul Perez Chief Architect

Pymma Consulting

--------------------------

Tel: +44 79 44 36 04 65 

Skype ID : polperez

 

Reply via email to