Spring Tips: Hedging Client Requests With the Reactive WebClient and a Service Registry
Learn how to hedge client requests in Spring!
Join the DZone community and get the full member experience.Join For Free
Hi, Spring fans! In this installment of Spring Tips, we look at how to use the reactive
WebFlux client to make a number of concurrent requests to distinct service instances (discovered using a service registry like Netflix Eureka or Consul through the Spring Cloud
DiscoveryClient abstraction) and meet SLAs by using the fastest request to return.
Published at DZone with permission of Josh Long, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.