Hello everyone, I am xiaobian South wind blowing, every day to recommend a small tool/source, full of your favorites, let you easily save development efficiency, do not work overtime do not stay up late do not lose hair!

Today, the small edition recommends a development platform based on Spring Cloud microservice, which has a unified authorization and authentication background management system, including user management, resource rights management, gateway API management and other modules, supporting the parallel development of multiple business systems, and can be used as the development scaffolding of back-end services. Simple code, clear architecture, suitable for learning and direct project use. Core technologies include Spring Boot 2.4.1, Spring Cloud (2020.0.0) and Spring Cloud Alibaba 2.2.4. Nacos registration and configuration center is adopted, and flow guard Sentinel is integrated. The front-end uses vue-element-Admin components that Elastic Search integrates itself.

Open source licenses

Use the Apache-2.0 open source license

The link address

[CLP] get git address

The technical architecture

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.

Demo screenshot

At the end

This issue is to share here, I am xiaobian South wind blowing, focus on sharing interesting, novel, practical open source projects and developer tools, learning resources! I hope to learn and communicate with you together. Welcome to follow my official account ** [Github navigation station] **.