NGINX based access frequency limiting method and system
A technology of access frequency and access request, applied in the transmission system, electrical components, etc., can solve the problems of increased service pressure, inability to control accurately, and loopholes, and achieve the effect of reducing calculation and background service pressure
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Examples
Example Embodiment
[0026] Such as figure 1 As shown, a specific implementation of the present invention:
[0027] 1. The user sends a request;
[0028] 2. nginx receives the user request;
[0029] 3. The lua script of nginx connects to the database, requests the current connection number s of this type, and adds 1 to the number or traffic; (if lua does not support the database, the data can be stored in the supported database)
[0030] 4. Obtain this type of request or traffic limit M according to the database;
[0031] 5. Determine whether the current connection number s is greater than the upper limit number M;
[0032] 6. If s> =M, intercept if the number of access restrictions is exceeded;
[0033] 7. If s
[0034] 8. Nginx sends the request to the back-end processing server through the reverse proxy;
[0035] 9. The background server processes and returns the results to the user;
[0036] 10. The database reduces the number of requests s by 1 or subtracts the flow value (this
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.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap