View Single Post
  #1 (permalink)  
Old 12-01-2005
ganzuoni ganzuoni is offline
Registered User
 
Name: Guido Anzuoni
Organization: Individual
Project: No specific project
 
Join Date: Jun 2003
Location: Italy
Posts: 48
About load balancing

I have read with a lot of interest the docs about new IceGrid features,
that, as usual, are really great !!
But checking (Java, easier for me ) source code to see what happens
on the client side, it seems that endpoints retrieved by locator are
always cached at Communicator level.
This means that on a middle tier, acting as multiple concurrent clients,
all the invocations should go to the same server.
In a usage patter like the following, for each request processed on the
middle tier (e.g. a servlet):
......
// select target server identity
ObjectPrx prx = communicator.stringToProxy(id);
//invoke operation on proxy
....

The endpoints attached to the Reference used by proxy prx will
never change because of the cache.
Am I wrong ?
Maybe there should be a way to trigger locator.findObjectById()
each time a proxy construction is requested, so that load balancing
strategies can take place.


Guido
__________________
Guido Anzuoni
Company: Individual
(http://www.objectmagic.org)
No specific project
Reply With Quote