Search code examples
spring-bootspring-cloudspring-cloud-loadbalancer

Does Spring Cloud LoadBalancer have a timeout like Netflix Ribbon?


I am trying to make the switch to LoadBalancer. When using Ribbon, I could set these properties to override the default 1000 ms timeouts:

ribbon.ReadTimeout=5000 ribbon.ConnectTimeout=5000

I don't see anything similar in the LoadBalancer documentation.

Does it have timeouts? If so, are they fixed and non-configurable?


Solution

  • No. That timeout was for the ribbon HTTP client. Spring Cloud Loadbalancer does not have a built-in HTTP client so it does not have a timeout.