#Microservices call with OpenFeign

1 messages · Page 1 of 1 (latest)

pastel peak
#

In a microservices project where service A calls services B, C, and D to respond to a request, should each service have its own declarative HTTP client, i.e., a FeignClient interface? Is this the better approach or an alternative such as RestClient should be used?

static martenBOT
#

<@&1004656351647117403> please have a look, thanks.

distant dome
#

It's really up to you, Feign is pretty nice as is removes a lot of boilerplate and the interfaces it creates make it really developer friendly.

#

Using the RestClient gives you more control

#

It really depends on what you're looking for and what problems you might have that one or the other might not be able to solve.

#

You could use both too

#

I'd recommend Feign though personally

pastel peak
#

Got it. Thank you, @distant dome!

static martenBOT
#

Closed the thread.

#

Activities have been reset.