Project: talendesb
Issue TESB-279: SL: Endpoint Resolver
A consumer for the Service Locator which is able to retieve the list of available provider (endpoints) for a given service and uses inital only a random selection strategy to select a single endpoint (provider) out of the list if more then one exists. The SL client should also be able use the different SL instances and should switch automatically to another SL instance if the one he used before disappeared. Workflow to be supported on the consumer: - For a given Service get the list of existing providers (instances) from the SL. - Select from the list the endpoint to be used by just using a simple startegy to randomly pick one entry from the list but design. - Keep the selected endpoint also fro subsequent requests - Refresh (reload list from SL) the list of endpoints when the current selected Endpoint results in a 'connection refused' error - use the new endpoint Remark: We also should try to use/leverage/take into account the fail over feature which is available in CXF. (Remark: we mainly leverage here Zookeeper client features)
Story points: 3