Summary

You should now know what a microservice architecture is, as well as its advantages and challenges, and how Spring Cloud solves these microservice challenges by using several Spring Cloud modules, such as Discovery Service and Client-side Load Balancing.

We can now implement a service registry using the Spring Netflix Eureka server and register some Eureka clients with it. We have also implemented several client applications using EurekaClient and Feign client. The Feign client resolves the Discovery Service by using service-name, and it by default provides support for load balancing as well. That means if you are using the Feign client to access the services registered with Eureka, you don't need to add Ribbon explicitly to manage the load across the multiple instances of a service.

With Feign Client and our registry, we can easily locate and consume the REST service, even when the location changes.

In the next chapter, we will explore and implement a RESTful microservices example.

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

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