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

Zookeeper-based sliding window current limiting solution

A sliding window and solution technology, applied in the field of Internet finance, can solve the problems of unconfigured interface, low server performance, low server availability, etc.

Pending Publication Date: 2021-01-12
TIANYI ELECTRONICS COMMERCE
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The technical problem to be solved by the present invention is to overcome the defects of the prior art, provide a zookeeper-based sliding window current limiting solution, and solve the problems of low server performance, unconfigurable interface and low server availability when multiple users are concurrently present in the prior art , to achieve high-performance, high-availability distributed current limiting purpose

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
  • Zookeeper-based sliding window current limiting solution
  • Zookeeper-based sliding window current limiting solution

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0022] Such as Figure 1-2 As shown, the present invention provides a zookeeper-based sliding window current limiting solution, comprising the following steps:

[0023] S1: Currently requesting authentication service and generating authkey;

[0024] S2: Determine whether the current request requests a security policy;

[0025] S3: Get rid of the requested code and go to the / auth / code file in zk to query the duration of the window, the address of the target server to be accessed, the maximum request amount N, the time interval of the sliding window, and the value of the counter of each sliding window;

[0026] S4: Calculate the sum N1 of all counters of all sliding window time intervals;

[0027] S5: judge N1>N;

[0028] S6: If N1>N, then start the current limiting strategy directly;

[0029] S7: If N1<=N, then the request is received normally, and the counter value of the current sliding window is +1, and the action of S4 is repeated;

[0030] S8: If the next sliding win...

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 zookeeper-based sliding window flow limiting solution, which can use sliding window counting to solve the problem of flow burst at a periodic switching position caused by fixed window counting. Compared with a fixed window counting method, the solution is advantageous in that besides two parameters of a counting period T and a maximum access (call) number N in the period,a parameter M is added for setting the number of sliding windows within a period T. According to the solution disclosed in the invention, the problems of low server performance, unconfigurable interface and low server availability during multi-user concurrence in the prior art are solved; the purpose of high-performance and high-availability distributed current limiting is achieved.

Description

technical field [0001] The invention relates to the field of Internet finance, in particular to a zookeeper-based sliding window current limiting solution. Background technique [0002] In a distributed architecture, it is generally divided into a service provider and a service caller. The service provider provides the dubbo interface externally, and the service caller makes service calls through the dubbo interface provided by the provider. The service party will have an estimated tps / qps threshold when the system involves expenditures. If the system withstands a higher than the designed tps value for a long time, the application system may be overwhelmed, and eventually spread to the entire series of services, forming Avalanche effect, resulting in service unavailability. In order to avoid this situation, it is necessary to limit the flow of API requests. The purpose of rate limiting is to protect the system by limiting the rate of concurrent access requests or the numb...

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): G06F9/448G06F9/50
CPCG06F9/5027G06F9/4482
Inventor 华东旭严永峰张小虎
Owner TIANYI ELECTRONICS COMMERCE