You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm creating feign clients using method FeignClientBuilder(context). I'm trying to check the effect of "maxConnections" and "maxConnectionsPerRoute" properties from "spring.cloud.openfeign.httpclient" it seems they are not applied.
I'm applying the properties:
However when I force the client to be ApacheHttpClient one and I manually apply the mentioned properties it works as expected and when applying load testing the execution produces timeouts
So is there anything wrong in my setup? How can I achieve httpclient props max-connections and max-connections-per-route from "spring.cloud.openfeign.httpclient" are properly applied when using FeignClientBuilder? Is FeignClientBuilder applying "spring.cloud.openfeign.httpclient" properties for the default http client?
Thanks in advance
The text was updated successfully, but these errors were encountered:
Hello @Siegolas, this is by design; if you choose to explicitly use Feign's Builder for creating client beans, it's logic will be used for building the beans, not the context-based logic that we use with @EnableFeignClients, with Feign.Client being default client implementation, so you need to build an provide your own Feign client bean, with any additional setup included. In addition to that, the FeignClientBuilder only allows you to set the values that would usually be passed as attributes of the @FeignClient annotation in the resulting bean.
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
I'm creating feign clients using method
FeignClientBuilder(context)
. I'm trying to check the effect of "maxConnections" and "maxConnectionsPerRoute" properties from "spring.cloud.openfeign.httpclient" it seems they are not applied.I'm applying the properties:
I'm using spring-cloud-openfeign version 4.0.3
A sample of how I create the feign client:
However when I force the client to be ApacheHttpClient one and I manually apply the mentioned properties it works as expected and when applying load testing the execution produces timeouts
So is there anything wrong in my setup? How can I achieve httpclient props max-connections and max-connections-per-route from "spring.cloud.openfeign.httpclient" are properly applied when using
FeignClientBuilder
? IsFeignClientBuilder
applying "spring.cloud.openfeign.httpclient" properties for the default http client?Thanks in advance
The text was updated successfully, but these errors were encountered: