According to the micro-service design idea, combining some excellent projects of spring cloud, such as service discovery, governance, configuration management, routing load, security control and other excellent solutions, using MAVEN technology to modular, service, atomization encapsulation and build, 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).
The Spring Cloud cloud architecture is built using MAVEN, and using MAVEN is more than just a jar package, it's important to capture the core 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, 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 you.
Here's a look at the code structure of the entire architecture:
System Services
Common components
Business Services
Here is simply a description of the Honghu Cloud architecture code structure.
Source source technical support for complete projects 1791743380
Spring Cloud-honghu Cloud-distributed micro-cloud system-building Code structure (v)