What is Feign?

FeignClient also known as Spring Cloud OpenFeign is a Declarative REST Client in Spring Boot Web Application. But what do you mean by Declarative REST Client? It means we need to specify the client specification as an Interface and Spring Boot will take care of the implementation for us. Writing web services with the help of FeignClient is very easier. FeignClient is mostly used to consume REST API endpoints which are exposed by third-party or microservice.

Java Spring Boot Microservices – Integration of Eureka, Feign & Spring Cloud Load Balancer

Microservices are small, loosely coupled distributed services. Microservices architecture evolved as a solution to the scalability, independently deployable, and innovation challenges with Monolithic Architecture. It provides us to take a big application and break it into efficiently manageable small components with some specified responsibilities. It is considered the building block of modern applications.

Similar Reads

What is Eureka?

Service Discovery is one of the major things of a microservice-based architecture. Eureka is the Netflix Service Discovery Server and Client. The server can be configured and deployed to be highly functional, with each server copying the state of the registered services to the others....

What is Feign?

FeignClient also known as Spring Cloud OpenFeign is a Declarative REST Client in Spring Boot Web Application. But what do you mean by Declarative REST Client? It means we need to specify the client specification as an Interface and Spring Boot will take care of the implementation for us. Writing web services with the help of FeignClient is very easier. FeignClient is mostly used to consume REST API endpoints which are exposed by third-party or microservice....

What is Spring Cloud Load Balancer?

Basically, there are two ways to load balance the request Client-Side Load Balancer and Server-Side Load Balancer. If you are keeping the load balancer on the client side and giving the load balancing responsibility to the client, then we called it Client-Side Load Balancing. And Spring Cloud LoadBalancer is one of the most popular client-side load balancers provided by Spring Cloud. The Spring Cloud Load Balancer library permits us to create applications that communicate with other applications in a load-balanced fashion. Using any algorithm we want, we can easily execute load balancing when making remote service calls....

Developing Service Discovery

To develop a Service Discovery using Eureka, please refer to this article Java Spring Boot Microservices – Developing Service Discovery....

Developing Microservices

In this project, we are going to develop two Microservices...