The previous article introduced the basic architecture diagram of Spring Cloud cloud service architecture, and we built the code based on the architecture diagram. Based on the concept of micro-service design, combined with spring Cloud's own service discovery, governance, configuration management, distributed and other excellent solutions, we use MAVEN technology to modular, service, atomic encapsulation, but also for the later hot-plug, continuous integration to do some preparatory work.
In addition, before setting up the environment, we need to master the use of Maven and the handling of related abnormal problems. The particle cloud architecture is built using MAVEN, and using Maven is not just a jar-package control, it's important to capture the central role of Maven, which is to divide the entire project into a modular way, decoupling business from business, The modular business is then serviced or modularized so that any project or platform can be ported for business. Finally, we have to consider the fine-grained splitting of the service, which is for the service orchestration of the multi-service, so that the micro-service architecture is being done. These are some of my experiences in doing projects or architectures to share with you.
Here's a look at the code structure of the entire architecture:
650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M01/A6/0C/wKioL1nIeWnStgP0AAAtnJzl6-Y074.png-wh_500x0-wm_ 3-wmp_4-s_1059187225.png "title=" qq picture 20170922102345.png "alt=" Wkiol1niewnstgp0aaatnjzl6-y074.png-wh_50 "/>
Description, the entire microservices architecture is divided into four parts: the first part: The basic framework Package (entity, DAO, Service, Controller, API) for the General Service, and so on the second part: Spring Cloud General MicroServices Project, can monitor the left and right micro services, of course, itself is also a micro service. Part III: The encapsulation of all components within the framework can be implanted into any module project. Part IV: HONGHU Business micro-services, such as: Members, messages, payments, orders, search, merchandise, shops, shopping carts, collections and so on. Today is just a brief description of the particle Cloud architecture code structure, the next one we will detail the function of each code structure, the use of instructions, design ideas and so on. Welcome everyone and I together to build a large-scale Internet distributed enterprise Micro-service cloud architecture, I will build the detailed steps of the structure of the record down, as a reference to learn from the future, I hope to help more good scholar! Source Source
(iii) Integration of Spring cloud services architecture-particle Cloud architecture Code structure building