Summary

We created a microservice called ACCOUNT-SERVICE and registered this service with the Eureka discovery service. We also created a consumer of the microservice as a web application, and it registered itself with the Eureka discovery service to consume the accountservice by using its logical service name rather than using a hardcoded hostname and server port.

Netflix's Eureka works as service discovery and client. Spring Cloud provides support to Netflix's Eureka to provide solutions to the cloud-native problems.

Netflix's Ribbon provides client-side load balancing with the Spring's RestTemplate. Spring Cloud promotes service registration and client-side load-balancing features to create a more resilient system.

We have also discussed ...

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.