Skip to content

Multiple Feign Clients for one service with different timeouts #673

@vkondr

Description

@vkondr

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 spring-cloud/spring-cloud-commons#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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions