Example
Explore how to build scalable microservices by implementing the Netflix stack with REST APIs, service discovery via Eureka, routing through Zuul, and resilience monitoring using Hystrix within Docker containers. Understand the architecture and practical steps to run these microservices locally.
Introduction
The example for this chapter can be found at https://github.com/ewolff/microservice. It consists of three microservices:
-
The catalog microservice that manages the information about the items.
-
The customer microservice that stores the data of the customers.
-
The order microservice that can accept new orders by using the catalog and the customer microservice.
Architecture of the example
- Each of the microservices has its own web interface with which users can interact.
- Among each other, the microservices communicate via REST.
- The order microservice requires information about customers