The Spring Cloud cloud service builds code based on the architecture diagram

Source: Internet
Author: User

In this article we build our code based on the architecture diagram. 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 everyone, gossip less, the following is the code structure of the entire architecture:

1. System Services

650) this.width=650; "height=" 274 "width=" 489 "src=" Https://static.oschina.net/uploads/space/2017/1008/005259_6y7U _3613013.png "style=" border:0px; "/>

2. General-Purpose components

650) this.width=650; "height=" 353 "width=" 455 "src=" Https://static.oschina.net/uploads/space/2017/1008/005318_7gu5 _3613013.png "style=" border:0px; "/>

3. Business Services

650) this.width=650; "height=" 811 "width=" 501 "src=" Https://static.oschina.net/uploads/space/2017/1008/005341_tNRK _3613013.jpg "style=" border:0px; "/>

650) this.width=650; "height=" 652 "width=" 569 "src=" Https://static.oschina.net/uploads/space/2017/1008/005357_v5eV _3613013.jpg "style=" border:0px; "/>

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 be documenting the process and essence of the recent development of the spring cloud micro-service cloud architecture to help more friends who are interested in developing the Spring cloud framework to explore the process of building the spring cloud architecture and how to use it in enterprise projects. Source Source


Spring Cloud cloud service builds code based on the schema diagram

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.