Implementation method of api distributed current limiting
A distributed and current-limiting technology, applied in multi-programming devices, instruments, data exchange networks, etc., can solve problems such as low server performance, unconfigurable interfaces, and low server availability, and achieve the effect of avoiding chain reactions
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment
[0036] a. The system administrator admin configures the order interface flow-limiting rule to allow 4,000 visits per second before the system is running, and the rule for user A to place an order interface is 80 visits per second;
[0037] b. User A initiates an API request to place an order, and the server will perform signature verification on the user key1 information, order quantity, price and other parameters in the request, and then query the user through Realm in the current limiting component according to key1 The corresponding order interface current limiting strategy, after the query is successful, call the cluster Redis lua script to obtain the current limiting token corresponding to user A and the order interface, after the acquisition is successful, it indicates that this call has not yet reached the current limiting bottleneck, and this call passes .
[0038] c. When user A visits the order interface for the 81st time in the current second, he will fail to obtain...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 
