appform-io / ranger

Service Discovery for Java
Apache License 2.0
7 stars 12 forks source link

Capability to dynamically add Services to ServiceDataSource #22

Closed gabber12 closed 1 year ago

gabber12 commented 1 year ago

What?

Add void add(Service service) to ServiceDataSource

Why?

RangerHub aims to be a single place to discover nodes for all services. In cases when the list of services are not known prehand, like usage of smart clients or dynamically created clients. Having capability to register service dynamically is also useful for services which cannot be known upfront.

Generally Smart clients have there own configuration management block. Service owners would have to do some wiring to make sure they merge smart client's configuration blocks with other config blocks to create rangerHub Service DataSource. By adding these hooks, smart clients can dynamically add there service descriptors to Datasource dynamically

Addresses https://github.com/appform-io/ranger/issues/10