In this section, we will discuss how to build a microservice-based application using the same online bookshop example as in the previous sections. Our application has the following four modules:
- Customer Account Management
- Order Management
- Book Inventory Management
- Shipping Management
I will create a microservice for each of these modules. The following microservices correspond to the application modules:
- Customer Account Management → Account Service
- Order Management → Order Service
- Book Inventory Management → Book Service
- Shipping Management → Shipping Service
The following diagram shows the architecture of this online bookshop application:
As you can see in the preceding diagram, we have four core microservices in this application. This architecture also has two more services: an API Gateway and the Shopfront UI web application...