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.1</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. |