Enterprise-level microservice framework based on layui+springcloud

Enterprise-level microservice framework based on layui+springcloud

2022-09-14 0 888
Resource Number 38417 Last Updated 2025-02-24
¥ 0HKD 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/enterprise-level-microservice-framework-based-on-layuispringcloud/

Share free open-source source code

Q&A
  • 1. Automatic: After making an online payment, click the (Download) link to download the source code; 2. Manual: Contact the seller or the official to check if the template is consistent. Then, place an order and make payment online. The seller ships the goods, and both parties inspect and confirm that there are no issues. ICTcoder will then settle the payment for the seller. Note: Please ensure to place your order and make payment through ICTcoder. If you do not place your order and make payment through ICTcoder, and the seller sends fake source code or encounters any issues, ICTcoder will not assist in resolving them, nor can we guarantee your funds!
View details
  • 1. Default transaction cycle for source code: The seller manually ships the goods within 1-3 days. The amount paid by the user will be held in escrow by ICTcoder until 7 days after the transaction is completed and both parties confirm that there are no issues. ICTcoder will then settle with the seller. In case of any disputes, ICTcoder will have staff to assist in handling until the dispute is resolved or a refund is made! If the buyer places an order and makes payment not through ICTcoder, any issues and disputes have nothing to do with ICTcoder, and ICTcoder will not be responsible for any liabilities!
View details
  • 1. ICTcoder will permanently archive the transaction process between both parties and snapshots of the traded goods to ensure the authenticity, validity, and security of the transaction! 2. ICTcoder cannot guarantee services such as "permanent package updates" and "permanent technical support" after the merchant's commitment. Buyers are advised to identify these services on their own. If necessary, they can contact ICTcoder for assistance; 3. When both website demonstration and image demonstration exist in the source code, and the text descriptions of the website and images are inconsistent, the text description of the image shall prevail as the basis for dispute resolution (excluding special statements or agreements); 4. If there is no statement such as "no legal basis for refund" or similar content, any indication on the product that "once sold, no refunds will be supported" or other similar declarations shall be deemed invalid; 5. Before the buyer places an order and makes payment, the transaction details agreed upon by both parties via WhatsApp or email can also serve as the basis for dispute resolution (in case of any inconsistency between the agreement and the description of the conflict, the agreement shall prevail); 6. Since chat records and email records can serve as the basis for dispute resolution, both parties should only communicate with each other through the contact information left on the system when contacting each other, in order to prevent the other party from denying their own commitments. 7. Although the probability of disputes is low, it is essential to retain important information such as chat records, text messages, and email records, in case a dispute arises, so that ICTcoder can intervene quickly.
View details
  • 1. As a third-party intermediary platform, ICTcoder solely protects transaction security and the rights and interests of both buyers and sellers based on the transaction contract (product description, agreed content before the transaction); 2. For online trading projects not on the ICTcoder platform, any consequences are unrelated to this platform; regardless of the reason why the seller requests an offline transaction, please contact the administrator to report.
View details

Related Source code

ICTcoder Customer Service

24-hour online professional services