Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumsremote services, load balancing
https://www.eclipse.org/forums/index.php/mv/msg/196165/625204/#msg_625204
I am trying to figure out how to integrate/implement a load balancing solution for declarative, automatically discoverable remote services.
I tried the examples
org.eclipse.ecf.examples.remoteservices.hello.ds.consumer
org.eclipse.ecf.examples.remoteservices.hello.ds.host
and they work just great.
I started several instances of hello.ds.host on different computers in a local network and they are successfully discovered (slp). A hello.ds.consumer instance can use the remote services (ecf generic).
Then I tried the examples
org.eclipse.ecf.examples.loadbalancing.consumer
org.eclipse.ecf.examples.loadbalancing.server
org.eclipse.ecf.examples.loadbalancing.servicehost
(btw thanks for the wiki page http://wiki.eclipse.org/Load_Balancing_Remote_Services).
They are also working fine, although I do not quite understand all the details. Could I kindly ask you to provide more details what is happening in DataProcessorServiceHostApplication (org.eclipse.ecf.examples.loadbalancing.servicehost)? LOAD_BALANCING_SERVICE_PROPERTY is mentioned in the code, also there is Constants.SERVICE_REGISTER_PROXY - I am a bit confused.
Generally my question is how can I integrated load balancing for remote services using ECF (and its implementations)? My best case would be to register (remote) services as in the org.eclipse.ecf.examples.remoteservices.hello.ds.* and then to "automagically" "turn on" the load balancing. Is this possible?
Sorry if my questions do not make sense, I'm pretty new to OSGI and ECF.
Thanks for the great work so far!