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

