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
中电福富信息科技有限公司
View PDF6 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI 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

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Examples

Experimental program
Comparison scheme
Effect test

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

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to 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.

Description

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Owner 中电福富信息科技有限公司
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