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

Inactive Publication Date: 2017-01-04
中电福富信息科技有限公司
6 Cites 5 Cited by

AI-Extracted Technical Summary

Problems solved by technology

If it is calculated by the background service, if an error occurs, it needs to go back to the previous state, there will be loopholes or it cannot be a...
View more

Abstract

The invention provides an NGINX based access frequency limiting method. The method comprises that a user sends an access request; a front-end server receives the user request, and is connected to a database; the present linking number s of the request type is obtained from the database; if s is lower than a threshold M, 1 or a flow value is added to s, and the access request is sent to a back-end processing server; and otherwise, the access request is intercepted. The invention provides an NGINX based access frequency limiting system which can be used to reduce load of the server.

Application Domain

Transmission

Technology Topic

Traffic volumeTraffic capacity +4

Image

  • NGINX based access frequency limiting method and system

Examples

  • Experimental program(1)

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 step is for the control of the amount of concurrency, if you can only limit the simple number of times, you can skip this step).

PUM

no PUM

Description & Claims & Application Information

We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.

Similar technology patents

Store site selection method and device and related equipment

PendingCN114372818Areduce calculationImprove the efficiency of store location selection
Owner:武汉紫阑信息技术有限公司

Session recommendation system and method based on time information and star map network

PendingCN114880594AReduced network structure complexityreduce calculation
Owner:JIANGNAN UNIV

Method and device for clustering file

InactiveUS20150356164A1reduce calculationdegree of complexity
Owner:TENCENT TECH (SHENZHEN) CO LTD

Classification and recommendation of technical efficacy words

  • reduce calculation

Apparatus and method for calculating square root

InactiveUS20070083587A1fast calculationreduce calculation
Owner:SAMSUNG ELECTRONICS CO LTD

Store site selection method and device and related equipment

PendingCN114372818Areduce calculationImprove the efficiency of store location selection
Owner:武汉紫阑信息技术有限公司

Method and device for clustering file

InactiveUS20150356164A1reduce calculationdegree of complexity
Owner:TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products