Using the registry-aware Spring Cloud Netflix FeignClient client

Let's look at a simple example about Feign Client. In Chapter 8, Simplify HTTP API with Feign Client, we will discuss more about the Spring Cloud Netflix Feign Client. Feign Client is a discovery-aware Spring RestTemplate using interfaces to communicate with endpoints. This client is a registry server-aware client. It will be used as the Discovery-server-aware Spring RestTemplate using an interface with service endpoints to communicate, and these interfaces will be automatically implemented at runtime. The Spring Cloud Netflix Feign Client is using services-names instead of the service-urls.

Feign already uses Ribbon, so if you are using @FeignClient then this section also applies. ...

Get Mastering Spring Boot 2.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.