Closed malaskowski closed 6 years ago
Please see ServiceDiscovery mechanism provided in Vertx (http://vertx.io/docs/vertx-service-discovery/java/).
Configuration concept is going to be re-written in the milestone: backpressure-and-configs
. Follow the updated wiki docks for more details.
The goal of this task is to move
services
section from Knot configuration to Adapter configuration. Example: currentShould be configured after the change like: knots.json
adapters.json
This task depends on #194 .
In order to Knot can see Adapters variants,
AdaptersRegistry
mechanism should be implemented. The idea is, that everyKnot
registers toAdapterRegistry
as an Observer and everyAdapter
registers as an Observable. When new a Adapter is created it simply notifies all Knots that it can support defined variants and can be requested under definedaddress
on the Event Bus.