Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Realization method and device of safe acceleration middleware based on NGINX+LUA

An implementation method and middleware technology, applied in the direction of multi-programming devices, electrical components, inter-program communication, etc., can solve problems such as server crashes, limited back-end dynamic script operation efficiency, etc., to improve processing speed and security Improved performance and processing speed, and reduced resource usage

Active Publication Date: 2017-05-10
CHENGDU STARCOR INFORMATION TECH
View PDF4 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] The current single WEB (website) server is limited by the operating efficiency of back-end dynamic scripts. When large-scale visits or DDOS (distributed denial of service) attacks flood in, the server is easy to crash

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

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Realization method and device of safe acceleration middleware based on NGINX+LUA
  • Realization method and device of safe acceleration middleware based on NGINX+LUA
  • Realization method and device of safe acceleration middleware based on NGINX+LUA

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0058] Such as figure 1 As shown, a security acceleration middleware implementation method based on NGINX+LUA includes the following steps:

[0059] S1. When the server receives the user's access request, it first obtains the configuration information from the shared memory. If there is configuration information, it screens whether the access request can be released according to the configuration information; if there is no configuration information, it accesses the dynamic service interface to obtain Configure the information and cache it in the shared memory, and then screen whether the access request can be released according to the configuration information. If the screening is passed and the access request can be released, it will enter S2. If the screening cannot be released, an error message will be returned;

[0060] S2, according to the configuration information, check whether the service interface requested by the user is a cacheable service, if so, enter S3, if not,...

Embodiment 2

[0092] Such as image 3 As shown, a security acceleration middleware device based on NGINX+LUA includes:

[0093] The security protection module is used to obtain the configuration information from the shared memory when the server receives the user's access request. If there is configuration information, it will filter whether the access request can be released according to the configuration information; if there is no configuration information, it will access The dynamic service interface obtains the configuration information and caches it in the shared memory, and then screens whether the access request can be released according to the configuration information. If the screening is passed and the access request can be released, it enters the service interface acceleration module. If the screening fails and cannot be released, an error message is returned;

[0094] The service interface acceleration module is used to check whether the service interface requested by the user ...

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 relates to a realization method and device of safe acceleration middleware based on NGINX+LUA, and belongs to the field of safe acceleration middleware; and the method and device can improve the safety and processing speed of a single server. Configuration information is obtained from a shared memory when the server receives a user access request, if the configuration information does not exist, a dynamic service interface is accessed to obtain the configuration information, and whether the access request is allowed is determined according to the configuration information; whether a service interface which a user asks to access includes cacheable service is detected according to the configuration information; if YES, caching data corresponding to the service interface is searched in the shared memory and an REDIS cluster, and returned to the user; and if NO, the corresponding dynamic service interface is called to obtain the data. Thus, the safety of the single server is improved, and the calling speed of part data of the dynamic service interface is improved.

Description

technical field [0001] The invention relates to the field of security acceleration middleware based on NGINX+LUA. Background technique [0002] The current single WEB (website) server is limited by the operating efficiency of back-end dynamic scripts. When large-scale visits or DDOS (distributed denial of service) attacks flood in, the server is easy to crash. The prior art generally provides acceleration or security filtering function with one or more reverse proxy servers, which requires more hardware resources, but the present invention is based on the existing NGINX (a high-performance web server) server Use LUA (a small scripting language) to expand, rationally use existing resources, cache and accelerate the service interface, effectively improve the performance and security of a single WEB server, and play an important role in security acceleration. Contents of the invention [0003] The technical problem to be solved by the present invention is to provide a securi...

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
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/08H04L29/06G06F9/54G06F17/30
CPCH04L63/0236G06F9/544G06F16/25H04L67/568
Inventor 陈朱尧帅富元
Owner CHENGDU STARCOR INFORMATION TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products