当前位置:网站首页>Module VI

Module VI

2022-07-07 16:45:00 InfoQ

Homework : Splitting e-commerce system into micro service
【 background 】
Suppose you are now a of a startup  CTO, The development team is about 30 Left and right , Include 5 Front end and 25 Back ends , Back end developers are all  Java, Now you are ready to start from  0 Start a small program e-commerce business , Please design the architecture of micro service splitting and the selection of micro service infrastructure .
【 Job requirements 】
1.  We need to clarify the idea of service splitting , And draw the split system architecture ;
2.  It is necessary to clarify the selection idea of micro service infrastructure , And select a microservice framework ;
3.  use 1~2 page  PPT  that will do .
【 Tips 】
1.  Three Musketeer principles need to be applied ; 
2.  You need to select the splitting method ;
3.  You need to select the mode of the microservice framework .


One 、 Service split

1、 Split ideas :

1、 Small program e-commerce business starts from 0 Start , So the split method is “ Split microservices by business ”, And is “ One step in place ”.

2、 Because of common ownership 25 A back-end Developer , According to the three Musketeer principles , Split one-to-one , Split into 8 Micro services , Respectively :
  • Order service
  • Member services
  • Inventory service
  • Shop services
  • Goods and services
  • Financial services
  • Marketing services
  • Other services

2、 The system architecture is as follows :


Two 、 Microservice infrastructure selection

1、 Microservice infrastructure will be gradually implemented according to priority , First implement the microservice framework of the service operation layer .

2、 Because it's a startup , The business scale is small , No need RPC, And back-end developers are all  Java, therefore  spring cloud  As a microservice framework .





原网站

版权声明
本文为[InfoQ]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207071439171587.html