- Hands-On Microservices:Monitoring and Testing
- Dinesh Rajput
- 226字
- 2021-06-24 18:24:30
Building microservices
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, which is the user interface that can be seen on the browser. To start building our microservice project, we have to create the following individual services:
- Config Server
- Eureka Server
- Account Service
- Book Service
- Order Service
- Shipping Service
- Zuul Proxy API Gateway
I have implemented these services using Spring Boot and Spring Cloud. You can use http://start.spring.io/ to generate the Spring Boot project. In this book, I haven't included the complete code structure for this application, but you can find it on GitHub: https://github.com/PacktPublishing/Mastering-Spring-Boot-2.0.
We'll look at the difference between SOAP and RESTful microservices in the following section.
- EJB 3.1從入門到精通
- 物聯網與北斗應用
- Building Django 2.0 Web Applications
- Hands-On Full Stack Development with Spring Boot 2 and React(Second Edition)
- Proxmox High Availability
- 新一代物聯網架構技術:分層算力網絡
- Go Web Scraping Quick Start Guide
- Windows Server 2003 Active Directory Design and Implementation: Creating, Migrating, and Merging Networks
- 中國互聯網發展報告2018
- WordPress Web Application Development
- 網絡AI+:2030后的未來網絡
- 異構蜂窩網絡關鍵理論與技術
- SRv6網絡部署指南
- 物聯網與智慧農業
- 走近奇妙的物聯網