Skip to content

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:

stork.my-service.service-registrar.type=static
quarkus.stork.my-service.service-registrar.type=static

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.