|Re: Discovery with load balancing - is there such discovery mechanism? [message #720889 is a reply to message #718093]
||Wed, 31 August 2011 12:46
| Pablo Mising name
Registered: July 2010
I am working in something similar. I don't know if it is a good idea, but I use a DistributedManagerService class with binds all distributed services in a list, but uses only one each time. So, every time a service disappears it is removed from the list and the consumer does need to know about it.|
So, it is passing from here:
Client USES ServiceInterface
Client USES DistributedManagerService with ServiceInterface,ServiceInterface,...
DistributedManagerService class selects wich ServiceInterface use, also you can program load balancing and that. It also uses bind and unbind methods to adquire ServiceInterface instances.
And of course, DistributedManagerService also can implement ServiceInterface, but you have to set DS to 0..n in order to avoid cycles.
Which discovery mechanism are you using? I would like to distribute ServiceInterface instances in several machines around the world, and I would like to indicate where can they be found.
[Updated on: Wed, 31 August 2011 12:48]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01849 seconds