- 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.
- SOA用戶指南
- 光網(wǎng)絡(luò)評估及案例分析
- Web Application Development with R Using Shiny
- 物聯(lián)網(wǎng)技術(shù)與應(yīng)用
- 數(shù)字調(diào)制解調(diào)技術(shù)的MATLAB與FPGA實(shí)現(xiàn):Altera/Verilog版(第2版)
- Building RESTful Web services with Go
- React Cookbook
- 物聯(lián)網(wǎng)場景設(shè)計與開發(fā)(初級)
- 語音信號處理及Blackfin DSP實(shí)現(xiàn)
- 人人都該都懂的互聯(lián)網(wǎng)思維
- Hands-On Bitcoin Programming with Python
- 物聯(lián)網(wǎng),So Easy!
- SEO攻略:搜索引擎優(yōu)化策略與實(shí)戰(zhàn)案例詳解
- Hands-On Cloud:Native Microservices with Jakarta EE
- 網(wǎng)絡(luò)基本通信約束下的系統(tǒng)性能極限分析與設(shè)計