Enterprise-level microservice framework based on layui+springcloud

Enterprise-level microservice framework based on layui+springcloud

2022-09-14 0 508
Resource Number 38417 Last Updated 2025-02-24
¥ 0USD Upgrade VIP
Download Now Matters needing attention
Can't download? Please contact customer service to submit a link error!
Value-added Service: Installation Guide Environment Configuration Secondary Development Template Modification Source Code Installation

The open-capacity-platform recommended in this issue is an enterprise-level microservice framework based on layui+springcloud (user rights management, configuration center management, application management…). )

Enterprise-level microservice framework based on layui+springcloud插图

Project Brief Introduction

open-capacity-platform is an enterprise-level microservice framework based on layui+springcloud, its core design goals are to separate the front and back ends, rapid development and deployment, simple learning, powerful functions, and provide quick access to core interface capabilities, and its goal is to help enterprises build a framework similar to Baidu’s capability opening platform;

Peculiarity:

Enterprise-level microservice architecture based on Layui front-end and back-end separation
Compatible with Spring Cloud Netflix & Spring Cloud Alibaba
Optimize the internal implementation of Spring Security to achieve a unified exit of API calls and a permission authentication authorization center
It provides complete enterprise microservice traffic monitoring and log monitoring capabilities
A common microservices architecture applies non-functional (NFR) requirements and is easier to reuse across different projects
Provide a complete stress testing program
Provides a complete grayscale release solution
Provide a complete microservice deployment solution
Code structure

Enterprise-level microservice framework based on layui+springcloud插图1

Get started quickly

Environment Version:

Enterprise-level microservice framework based on layui+springcloud插图2

JDK Installation:

yum install java-1.8.0-openjdk* -y

Mysql:

wget http://repo.mysql.com//mysql57-community-release-el6-8.noarch.rpm
yum localinstall mysql57-community-release-el6-8.noarch.rpm

Project Import:

Select From
https://gitee.com/owenwangwen/open-capacity-platform Download to your local address

Enterprise-level microservice framework based on layui+springcloud插图3

Select open-capacity-platform, right mouse button, run as maven build…

Enterprise-level microservice framework based on layui+springcloud插图4

Enter clean package install to compile the installation

Enterprise-level microservice framework based on layui+springcloud插图5

The IDEA project import process is in more documentation

Start the project

Registry

register-center/eureka-server

Enterprise-level microservice framework based on layui+springcloud插图6

 

Enterprise-level microservice framework based on layui+springcloud插图7

API Gateway (ingress of global routing)

Enterprise-level microservice framework based on layui+springcloud插图8

api-gateway and new-api-gateway
One is to use Zuul, and the other is to use SpringCloudGateway, which will be introduced in a later document, just choose one of them to start

Certification Center

Enterprise-level microservice framework based on layui+springcloud插图9

Business Center

Enterprise-level microservice framework based on layui+springcloud插图10

Web management

Enterprise-level microservice framework based on layui+springcloud插图11

Architectural design diagram

Enterprise-level microservice framework based on layui+springcloud插图12

 

Technical architectureEnterprise-level microservice framework based on layui+springcloud插图13

 

Technical architecture request processEnterprise-level microservice framework based on layui+springcloud插图14

 

System processes

General introduction

The OCP capability platform meets the non-functional requirements (NFR) of microservice architecture applications, and the non-functional requirements are not related to the application itself, and the experience related to non-functional requirements accumulated in project development can be more easily reused in different projects.

Service management

Through the OCP capability platform, you can call various management interfaces provided by the registry to implement service management. In my experience, service management generally includes the following operations:

Services are available online and offline. When a new service is launched, you can add a new service by calling the service add interface of the registry, and when you want to take down an existing service, you can also delete a service by calling the service cancellation interface of the registry.
Node addition/removal. When you need to add a new node to a service, you can call the node registration API of the registry to add a new node to the service. When a faulty node appears or you want to temporarily take some nodes offline, you can call the node anti-registration API of the registry to delete the node.
Service Inquiries. This operation will call the service query interface of the registry, which can query how many services are registered in the current registry and the detailed information of each service.
Service node query. This operation will call the node query interface of the registry to query the total number of nodes under a service.

Service governance

Through the OCP capability platform, you can call the APIs provided by the configuration center and dynamically modify various configurations to implement service governance. In my experience, common service governance methods include the following:

Rate limiting. Generally, when the system fails, for example, Weibo may multiply the traffic several times in a short period of time due to the occurrence of hot emergencies, exceeding the maximum capacity of the system. In this case, you need to call the interface of the configuration center to modify the rate limiting threshold of non-core services, so as to reduce the call of non-core services and leave sufficient redundancy for core services.
Demote. Like throttling, degradation is a response in the event of a system failure. Either because of the arrival of sudden traffic, the capacity of the system is insufficient, and some non-core services can be downgraded to increase the redundancy of the system. Either the system is slowed down due to some dependent service problems, and you can downgrade the call to the dependent service to avoid being dragged to death.

Service monitoring

The OCP capability platform generally includes two levels of monitoring. One is the overall monitoring, such as the service dependency topology diagram, which visualizes the invocation relationship and dependency between services in the entire system; One is the monitoring of specific services, such as QPS, AvgTime, P999 and other monitoring metrics of the service. The overall monitoring can be displayed using the service dependency topology diagram provided by the service tracking system, and the specific service monitoring can be displayed through the monitoring system UI such as Grafana.

资源下载此资源为免费资源立即下载
Telegram:@John_Software

Disclaimer: This article is published by a third party and represents the views of the author only and has nothing to do with this website. This site does not make any guarantee or commitment to the authenticity, completeness and timeliness of this article and all or part of its content, please readers for reference only, and please verify the relevant content. The publication or republication of articles by this website for the purpose of conveying more information does not mean that it endorses its views or confirms its description, nor does it mean that this website is responsible for its authenticity.

Ictcoder Free source code Enterprise-level microservice framework based on layui+springcloud https://ictcoder.com/kyym/enterprise-level-microservice-framework-based-on-layuispringcloud.html

Share free open-source source code

Q&A
  • 1, automatic: after taking the photo, click the (download) link to download; 2. Manual: After taking the photo, contact the seller to issue it or contact the official to find the developer to ship.
View details
  • 1, the default transaction cycle of the source code: manual delivery of goods for 1-3 days, and the user payment amount will enter the platform guarantee until the completion of the transaction or 3-7 days can be issued, in case of disputes indefinitely extend the collection amount until the dispute is resolved or refunded!
View details
  • 1. Heptalon will permanently archive the process of trading between the two parties and the snapshots of the traded goods to ensure that the transaction is true, effective and safe! 2, Seven PAWS can not guarantee such as "permanent package update", "permanent technical support" and other similar transactions after the merchant commitment, please identify the buyer; 3, in the source code at the same time there is a website demonstration and picture demonstration, and the site is inconsistent with the diagram, the default according to the diagram as the dispute evaluation basis (except for special statements or agreement); 4, in the absence of "no legitimate basis for refund", the commodity written "once sold, no support for refund" and other similar statements, shall be deemed invalid; 5, before the shooting, the transaction content agreed by the two parties on QQ can also be the basis for dispute judgment (agreement and description of the conflict, the agreement shall prevail); 6, because the chat record can be used as the basis for dispute judgment, so when the two sides contact, only communicate with the other party on the QQ and mobile phone number left on the systemhere, in case the other party does not recognize self-commitment. 7, although the probability of disputes is very small, but be sure to retain such important information as chat records, mobile phone messages, etc., in case of disputes, it is convenient for seven PAWS to intervene in rapid processing.
View details
  • 1. As a third-party intermediary platform, Qichou protects the security of the transaction and the rights and interests of both buyers and sellers according to the transaction contract (commodity description, content agreed before the transaction); 2, non-platform online trading projects, any consequences have nothing to do with mutual site; No matter the seller for any reason to require offline transactions, please contact the management report.
View details

Related Article

make a comment
No comments available at the moment
Official customer service team

To solve your worries - 24 hours online professional service