In this article we build our code based on the architecture diagram. According to the micro-service design idea, combined with Springcloud some excellent projects, such as service discovery, governance, configuration management, routing load, security control and other excellent solutions, using MAVEN technology to modular, service, atomized encapsulation and build, but also for the post-grayscale publishing, Continuous integration in advance to prepare for the work.
In addition, before setting up the environment, you need to master the use of Maven and related issues (not repeated here).
Honghu Cloud architecture using MAVEN to build, using MAVEN is not just a jar package control, it is important to seize a central role of Maven, that is, the entire project in a modular way, business and business decoupling, and then the modular business service or component , so that you can do any project or platform business porting.
Finally, consider the fine-grained division of services, such as: A login module, we can all the services related to the login service (basic information verification; user name, email, mobile phone authentication login, mobile phone Verification Code acquisition, verify the user is bound, etc.), and finally for multi-service service orchestration, In this way, the micro-service architecture is being done.
These are some of my experiences in doing projects or architectures to share with everyone, gossip less, the following is the code structure of the entire architecture:
1. System Services
650) this.width=650; "src=" http://s9.sinaimg.cn/mw690/006XD8DUzy7ePH5bITu78 "title=" "/>
2. General-Purpose components
650) this.width=650; "src=" http://s3.sinaimg.cn/mw690/006XD8DUzy7ePH6p6WC42 "title=" "/>
3. Business Services
650) this.width=650; "src=" http://s6.sinaimg.cn/mw690/006XD8DUzy7ePH9hIu965 "title=" "/>
650) this.width=650; "src=" http://s14.sinaimg.cn/mw690/006XD8DUzy7ePH9kwON1d "title=" "/>
Today is just a brief description of the Honghu 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.
From now on, I will record the process and essence of the recent development of Spring Cloud micro-service cloud architecture, and help more friends who are interested in developing the Springcloud framework to explore the construction process of Springcloud architecture and how to use it in enterprise projects.
There is a need for the source of friends can be added to beg: 2147775633
(v) Code structure construction of Spring Cloud cloud service Architecture