Distributed current limiting method based on redis, computer equipment and storage medium
A current limiting method and distributed technology, applied in the field of traffic management, which can solve the problem that multiple gateway servers cannot share current limiting traffic.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment
[0027] The present invention provides a redis-based distributed current limiting method, which adopts and improves the token bucket algorithm, which is currently the most commonly used one in network traffic shaping (Traffic Shaping) and rate limiting (RateLimiting) algorithm. Typically, the token bucket algorithm is used to control the amount of data sent to the network and to allow bursts of data to be sent. The principle of the invention is that the system will put tokens into the bucket at a constant speed, and if the request needs to be processed, it needs to obtain a token from the bucket first, and when there is no token available in the bucket, the service will be refused.
[0028] The concrete steps of a kind of redis-based distributed current limiting method include the following contents:
[0029] Step 1. Set the current limit interval to interval (example: 1 second), the number of tokens that need to be placed in the token bucket intervalTokens (example: 1000) in ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com