Spring Cloud: Consuming Eureka client application With another eureka client and Rest Template (Part 3)
⚠️ This tutorial covers an old Spring Cloud version. It uses RestTemplate with Ribbon on Spring Boot 1.x/2.x — Ribbon was removed from Spring Cloud, and RestTemplate is replaced by RestClient. See the updated Eureka guide, the RestTemplate to RestClient migration guide, and the Spring Cloud Netflix migration guide. This is a quick tutorial for consuming services exposed by one Eureka client application in another Eureka client application. This tutorial has the prerequisite of a running Eureka server and a Eureka client application as well. In case if you do not have Eureka server or a Eureka client application, check out my previous posts in this series which explains how to setup eureka server and how to develop a eureka client application. The eureka client which we will be developing in this tutorial will be registered in eureka server and will consume service exposed by another client application. TL;DR You can download whole project by clicking following link. Spring Cloud (V2.3.1) Eureka Consumer ClientDownload To give you a brief idea about what we are developing... We will be creating a Eureka client in this tutorial. The client will be a spring boot application and will expose one rest endpoint. The client will also internally consume service exposed by another eureka client application.