In this article, we build the code from the architecture diagram. According to the design idea of service, with spring cloud some excellent projects, such as the service discovery, management, configuration management, routing load, safety control and so on outstanding solutions, using Maven technology will be modular framework, value-chain, atomization encapsulation and build, also for the gray level in the late release, continuous integration, get ready for work.

In addition, before setting up the environment, you need to be familiar with the use of Maven and related problems (I will not repeat the introduction here). The HongHu cloud architecture is constructed by Maven. Maven is not only used for jar package control, but also one of the core functions of Maven. That is, the whole project is divided in a modular way to decouple business from business, and then the modular business is servitized or componentized. This allows business migration to any project or platform.

Finally, consider the fine-grained decomposition of services, such as a login module, where we can servize all login-related businesses (basic information verification; User name, email, mobile phone login verification; Mobile verification code acquisition; Verify whether users are bound, etc.), and finally orchestrate services for multiple services, thus achieving the ongoing microservices architecture.

Here is the code structure of the entire architecture:

  1. System services

  1. Common component

  1. Business services

Today, just a brief description of the Code structure of HongHu cloud architecture, next we will introduce the role of each code structure, instructions for use, design ideas, etc. From now on, I will record the construction process and essence of spring Cloud micro-service cloud architecture recently developed, so as to help more friends who are interested in developing Spring Cloud framework to discuss the construction process of Spring Cloud architecture and how to apply it to enterprise projects. Source: data source minglisoft. Cn/honghu/tech…