(iii) Integration of Spring cloud services architecture-particle Cloud architecture Code structure building

Source: Internet
Author: User

The previous article introduces the basic architecture diagram of Spring Cloud cloud service architecture, this article constructs the code according to the architecture diagram, according to the micro-service design idea, unifies the spring cloud own service discovery, the governance, the disposition management, the distributed and so on the project outstanding solution, We use MAVEN technology to modularize, service, and atomically encapsulate frameworks, as well as prepare for later hot-swappable, continuous integration.

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, consider the fine-grained division of services, such as: A login module, we can all the services related to the login service (basic information validation; user name, mailbox, mobile phone authentication login, mobile phone Verification Code acquisition, verify the user is bound, etc.), and finally for the service of multi-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:


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 to record down, as a reference to learn from the future, interested in adding Penguin 2147775633, hope to help more good scholar! Source Source

(iii) Integration of Spring cloud services architecture-particle Cloud architecture Code structure building

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.