Spring Cloud Netflix and Service Discovery

In this chapter, we will explore Spring Cloud Netflix and Service Discovery with Eureka. In the previous chapter, we discussed the cloud-native application architecture and the problems associated with this cloud-native pattern. We also discussed how Spring Cloud provides solutions for the configuration management of cloud-based applications. Spring Cloud provides the Spring Cloud Config module, which is helpful in managing the configuration for the distributed applications, such as microservices.

We implemented our own Spring Cloud Config server application and also created a consumer for this Cloud Config Server. In this chapter, we will go another step ahead and see how Spring Cloud provides support with regard to communication between multiple distributed services.

The following topics are going to be discussed in this chapter. These topics will give you a better understanding of the Service Discovery with Eureka:

  • Introduction to Spring Cloud Netflix
  • Need for Service Discovery in microservices architecture
  • Implementing Service Discovery—Eureka Server:
    • Enabling Eureka Server as a Discovery Service Server
  • Implementing Service Discovery—Eureka Clients:
    • Registering clients with Eureka
    • Consuming the REST service
    • Using EurekaClient
    • Using DiscoveryClient
    • Client-side load balancing using Netflix Ribbon
    • Using the registry-aware client, Spring Cloud Netflix FeignClient

Let's look at these topics in detail.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.116.80.34