spring-cloud / spring-cloud-openfeign

Support for using OpenFeign in Spring Cloud apps
Apache License 2.0
1.21k stars 785 forks source link

Spring suggests to go ahead with Webclient instead of Rest Template (as eventually it will get deprecated), how would it affect Open Feign? #824

Closed mishra11dec-abhishek closed 1 year ago

mishra11dec-abhishek commented 1 year ago

Hi Folks,

With rest template eventually set for deprecation and Spring suggesting to use Webclient instead of rest template.

How will it affect Open Feign, will it also get deprecated?

Kindly provide an answer to this query.

Thanks in advance.

OlgaMaciaszek commented 1 year ago

Making Spring Cloud OpenFeign support WebClient would require rearchitecting the core Feign, which is an independently maintained project (also see https://github.com/spring-cloud/spring-cloud-openfeign/issues/4). We are not planning on doing it. Starting with Spring 6 and Spring Cloud 2022, we recommend WebClient-backed Spring Interface Clients as a declarative clients solution of choice.