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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

