Unlock instant, AI-driven research and patent intelligence for your innovation.

System dynamic current limiting method and device, and storage medium

A system dynamic, storage medium technology, applied in the field of network communication, can solve problems such as overkill, complex components, and overcomplexity.

Inactive Publication Date: 2021-02-05
广东好太太智能家居有限公司
View PDF5 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Commonly used open source current-limiting components include Sentinel, Hystrix, and resilience4j, but the above-mentioned components are relatively complicated. For software or systems with small daily traffic scales, setting up the above-mentioned components will be too complicated and overkill

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • System dynamic current limiting method and device, and storage medium
  • System dynamic current limiting method and device, and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0038] Such as figure 1 As shown, the present invention provides a method for dynamic system current limiting, which is implemented based on RateLimiter (a current limiting tool) of Guava (a Java library based on open source), and only needs a small number of specified interfaces. Part of the flow is connected to ensure the normal function of the system as a whole. Specifically include the following steps:

[0039] Step S1, according to the attribute of the token bucket, add the license to the token bucket of the specified interface of the system. It should be noted that the attributes of the token bucket are pre-configured and can be flexibly configured according to business requirements. Specifically include the following steps:

[0040] When a trigger event occurs, initialize the number of licenses in the token bucket; generate a corresponding number of licenses and add them to the token bucket. Wherein the triggering event refers to receiving a request, and the attribu...

Embodiment 2

[0053] Such as figure 2 As shown, an electronic device includes a memory, a processor, and a program stored in the memory. The program is configured to be executed by the processor. When the processor executes the program, the above-mentioned method for dynamic current limiting of the system is implemented. A step of.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a system dynamic flow limiting method and device, and a storage medium, and the method comprises the following steps: S1, adding a license to a token bucket of a specified interface according to the attribute of the token bucket; S2, after a request is received, analyzing information carried by the request; and S3, processing the request according to the information carriedby the request and the number of the remaining licenses in the token bucket. The method can be applied to applications or systems with small daily flow, the request is processed by analyzing the information carried by the request and the actual situation of the token bucket, and flow protection is set at a specified interface of the system. Under the conditions of a large amount of burst trafficand limited resources, part of traffic can be rejected only through a small number of specified interfaces so as to ensure that the overall function of the system is normal.

Description

technical field [0001] The present invention relates to the technical field of network communication, in particular to a method, device and storage medium for system dynamic current limiting. Background technique [0002] At present, the e-commerce industry often has a large number of promotional activities, such as various traditional festivals, Double 11, and other activities. During the promotional activities, a large number of orders will be generated intensively. For e-commerce platforms, a series of operations such as ordering and querying by users will bring about a concentrated burst of traffic. Unexpected requests will have a great impact on the system, but the load capacity of the actual business system is limited. In order to prevent the system from being overwhelmed by excessive pressure on the business system, it is necessary to introduce a current limiting strategy for the service interface . Although current limiting will reduce and deny the access frequency...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L12/819G06F21/33G06Q30/06H04L47/21
CPCH04L47/215G06F21/33G06Q30/0601
Inventor 王妙玉吴宁泉王伦
Owner 广东好太太智能家居有限公司