Static List Service Registration#
Stork provides the ability to register services using Static list as backend.
Dependency#
To use the static
service registrar, first add the appropriate Service Registration provider dependency to your project:
<dependency>
<groupId>io.smallrye.stork</groupId>
<artifactId>stork-service-registration-static-list</artifactId>
<version>2.7.4</version>
</dependency>
Service registration configuration#
For each service that should register the service instances in a static list, configure the service registrar type
:
Static service registrar is configured with the following parameters:
Attribute | Mandatory | Default Value | Description |
---|---|---|---|
address-list |
Yes | A comma-separated list of addresses (host:port). The default port is 80. |
Service deregistration configuration#
There is no specific configuration required to enable deregistration; however, you must ensure that a consul service registrar is configured for the service:
As with registration, deregistration relies on the service name.