preface

Cloud-platform is the first micro-service development Platform based on Spring Cloud in China. It has a unified authorization and authentication background management system, including multiple modules such as user management, resource rights management and gateway API management. It supports the parallel development of multi-service systems and can serve as the development scaffolding for back-end services. Simple code, clear architecture, suitable for learning and direct project use. The core technology adopts Spring Boot 2.1.2 and Spring Cloud (Greenwich.RELEASE) related core components, Nacos registration and configuration center, integrated flow guard Sentinel, and vue-element-Admin component at the front end. Elastic Search integrates itself.

The module specification

! [recommend a super cattle SpringCloud micro services, development of scaffolding] (https://p1-tt.byteimg.com/origin/pgc-image/2aa692373ff447da90c11c95fe6978e9?from=pc)

Architecture in this paper,

Zhongtai chemical front end

Integrated D2admin China front-end, optimized the front-end architecture and function layout, and supported China Service application development.

JWT authentication

User authentication and information transfer are carried out through JWT to ensure stateless transfer of users between services.

monitoring

Spring Boot Admin is used to monitor the running status of each independent Service. Use the Hystrix Dashboard to view the running status and call frequency of the interface in real time.

Load balancing

In addition to node.js and Nginx, Spring Cloud series Zuul and Ribbon can help us carry out normal gateway control and load balancing. Among them, the extension and reference of foreign projects is based on the Zuul current limiting plug-in of JWT.

Service registration and invocation

Nacos-based service registration and invocation. Using Feign in Spring Cloud, we can achieve the same coding experience when requesting a remote service using HTTP as when calling a local method. The developer does not know that it is a remote method, let alone an HTTP request.

Fusing and flow control

Integrates Ali Sentinel for interface flow control and avoids “avalanche” of calls between services through fusing and downgrading processing.

Screenshot function

! [recommend a super cattle SpringCloud micro services, development of scaffolding] (https://p1-tt.byteimg.com/origin/pgc-image/a2368f3c2ffa482697c05a0cf6d25983?from=pc)
! [recommend a super cattle SpringCloud micro services, development of scaffolding] (https://p1-tt.byteimg.com/origin/pgc-image/376bf2c4ecd240c0853cd42504cd3bfb?from=pc)
! [recommend a super cattle SpringCloud micro services, development of scaffolding] (https://p3-tt.byteimg.com/origin/pgc-image/a4b10831899a4acaa6b08669e8701e72?from=pc)
! [recommend a super cattle SpringCloud micro services, development of scaffolding] (https://p1-tt.byteimg.com/origin/pgc-image/49bcc6feaa87402399a1de6aae85acd6?from=pc)
! [recommend a super cattle SpringCloud micro services, development of scaffolding] (https://p3-tt.byteimg.com/origin/pgc-image/c941411cab2944968f8cd257aeb1b745?from=pc)
! [recommend a super cattle SpringCloud micro services, development of scaffolding] (https://p6-tt.byteimg.com/origin/pgc-image/bef9667787c24f65bdaad2e52261fcb5?from=pc)
! [recommend a super cattle SpringCloud micro services, development of scaffolding] (https://p3-tt.byteimg.com/origin/pgc-image/4cfc99a643914ac98c50ddd53154715b?from=pc)
! [recommend a super cattle SpringCloud micro services, development of scaffolding] (https://p1-tt.byteimg.com/origin/pgc-image/1a9c4570d7e44c4e97fb43ee5b96374a?from=pc)
! [recommend a super cattle SpringCloud micro services, development of scaffolding] (https://p6-tt.byteimg.com/origin/pgc-image/6580b33a0b8c4a0a9bb3d4536379b9da?from=pc)
! [recommend a super cattle SpringCloud micro services, development of scaffolding] (https://p1-tt.byteimg.com/origin/pgc-image/458d6da0291045adbe12baf9f9383b3d?from=pc)
! [recommend a super cattle SpringCloud micro services, development of scaffolding] (https://p6-tt.byteimg.com/origin/pgc-image/2e993d4ea9c84650b26f4d22bd7fcf01?from=pc)
! [recommend a super cattle SpringCloud micro services, development of scaffolding] (https://p6-tt.byteimg.com/origin/pgc-image/46ed785d3d884b599b99a1dbaf0ed441?from=pc)
! [recommend a super cattle SpringCloud micro services, development of scaffolding] (https://p3-tt.byteimg.com/origin/pgc-image/80236989116240a196d22d7566b0a5b2?from=pc)

The project address