Least Response Time Load Balancing
least-response-time load balancing strategy monitors the operations and selects the fastest instance.
This load balancer collects statistics and determines which instance will provide the shorter response time.
First, you need to add the least-response-time load-balancer to your project:
<dependency> <groupId>io.smallrye.stork</groupId> <artifactId>smallrye-stork-load-balancer-response-time</artifactId> <version>SNAPSHOT</version> </dependency>
For each service expected to use a least-response-time selection, configure the
load-balancer to be
stork.my-service.service-discovery=... stork.my-service.service-discovery...=... stork.my-service.load-balancer=least-response-time