PlaytikaOSS / feign-reactive

Reactive Feign client inspired by https://github.com/OpenFeign project
Apache License 2.0
618 stars 125 forks source link

Multiple Feign Clients for one service with different timeouts #673

Open vkondr opened 6 months ago

vkondr commented 6 months ago

Hi, I have a few Reactive Feign clients for one eureka application, I want to configure a different timeouts for this clients. Currently it seems to be impossible because timeouts are configured per eureka service name. For the Ribbon it was possible to override a service name https://github.com/kptfh/feign-reactive-sample/blob/master/feign/src/main/resources/application.yml#L23C6-L23C40 but it does not work for a spring cloud load balancer https://github.com/spring-cloud/spring-cloud-commons/issues/951

In the regular Feign client it is possible to configure timeouts per contextId, I see that a Reactive Feign supports a qualifiers, It would be nice to add a timeout configuration per qualifier: reactive.feign.client.config.MyReactiveclientRegular.options.readTimeoutMillis=100 reactive.feign.client.config.MyReactiveclientBatch.options.readTimeoutMillis=2000