Skip to content

Loadbalancer - allow custom instance alive checker #763

@ztomic

Description

@ztomic

HealthCheckServiceInstanceListSupplier is currently using WebClient for checking if ServiceInstance is alive. In my project I'm not using webflux for anything so to use health check I should add spring-boot-starter-webflux only for that.

I know that RestTemplate should not probably be supported here because of announced moving from RestTemplate to WebClient, but could you consider something like additional constructor for HealthCheckServiceInstanceListSupplier with for e.g. Function<ServiceInstance, Mono<Boolean>> aliveChecker? With this additional constructor (or some better way, with WebClient optional) someone could implement that function with RestTemplate or implement some additional checks if needed.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions