Eureka Registration
Overview
Helidon’s Eureka Server Service Instance Registration Integration provides a
ServerFeature that offers support for automatically and
unobtrusively attempting to register a running Helidon microservice with an
available Netflix Eureka Server of at least version 2.0.5 in the microservice’s
runtime environment.
Usage
Installation
Maven Coordinates
To enable Eureka Server Service Instance Registration Integration, add the
following dependency to your project’s pom.xml (see Managing
Dependencies).
This feature is fundamentally a ServerFeature, and is
automatically installed by its associated
ServerFeatureProvider when the provider is found in
configuration (see below).
Configuration
You need to specify at an absolute minimum the URI to the available Netflix Eureka Server of at least version 2.0.5 in the microservice’s runtime environment:
All other configuration values can be (and ordinarily are) defaulted, but some are best set explicitly:
Please consult the Helidon Config Reference for a full description of the permitted configuration.
Logging
This feature attempts initial registration when the WebServer starts, before
starting lease renewal. If the Eureka Server refuses the connection, the feature
logs a warning and the WebServer starts; the renewal loop can attempt
registration later. An unsuccessful HTTP response also allows startup to
continue when the feature can process its body. Other exceptions during initial
registration, such as an unsupported response media type, can propagate from
WebServer.start(). The server listener has already started when this happens.
Check the feature's logs when registration does not succeed.
Like all other Helidon components, this feature uses Java logging. Its loggers
begin with the io.helidon.integrations.eureka prefix, and log debug, warning
and error-level information.
Information about how this feature is communicating with the Eureka Server is
logged by loggers under the io.helidon.webclient prefix.
Related Documentation
Users of this feature may also be interested in the (related) Discovery feature, particularly its Eureka provider.