|Discovery with load balancing - is there such discovery mechanism? [message #718093]
||Tue, 23 August 2011 08:38
| Marton Sigmond
Registered: July 2009
is there such discovery mechanism that takes care of the load balancing as well?
What I mean:
- Multiple hosts provide services for a certain interface.
- Instead of resolving all of those services, the discovery mechanism resolves only one.
- However if the provider host becomes overloaded, the discovery mechanism automatically unresolves the service, and picks another one from another host.
Is there such discovery mechanism?
Also, if you see drawbacks of the above described mechanism, please let me know.
Senior Software Engineer
|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.02396 seconds