Multi-service gateway-oriented flow limiting and automatic capacity expanding and shrinking method
A multi-service and gateway technology, applied in the computer field, can solve problems such as longer waiting time, slower service, no logic, etc., and achieve the effect of increasing the number of servers, ensuring normal business, and reducing costs
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0034] Embodiment 1: see figure 1 , figure 1 A flow chart of a multi-service gateway-oriented current limiting and automatic scaling method provided by the present invention; a multi-service gateway-oriented current limiting and automatic scaling method provided by the present invention includes steps:
[0035] Step 101, for OpenResty to provide a plug-in interface for the lua script running on nginx, the plug-in interface includes: current limiting plug-in interface, feature anti-brush plug-in interface, access control plug-in interface, firewall plug-in interface and SQL anti-injection plug-in interface;
[0036] When the traffic is too large, it will limit the traffic to prevent the upstream of the gateway from denying access; for the overflow traffic, the gateway service will queue it and not directly discard it; there is a limit on the frequency of IP access.
[0037] Feature anti-brush means that certain services set restrictions on certain users or parameters, such as ...
Embodiment 2
[0054] continue to see figure 1 , figure 1 A flowchart of a multi-service gateway-oriented current limiting and automatic expansion and contraction method provided by the present invention; a multi-service gateway-oriented current limiting and automatic expansion and contraction method provided by the present invention includes steps:
[0055] Step 201, for OpenResty to provide a plug-in interface for the lua script running on nginx, the plug-in interface includes: current limiting plug-in interface, feature anti-brush plug-in interface, access control plug-in interface, firewall plug-in interface and SQL anti-injection plug-in interface;
[0056] When the traffic is too large, it will limit the traffic to prevent the upstream of the gateway from denying access; for the overflow traffic, the gateway service will queue it and not directly discard it; there is a limit on the frequency of IP access.
[0057] Feature anti-brush means that certain services set restrictions on cert...
Embodiment 3
[0085] This embodiment is an application embodiment:
[0086] Another multi-service gateway-oriented current limiting and automatic expansion and contraction method provided by the present invention includes steps:
[0087] In step 301, OpenResty is provided. OpenResty itself only encapsulates Nginx and integrates the Lua environment. Its core service is Nginx. Nginx configures various services and APIs through the nginx.conf file. The traditional way for Nginx to support multiple services is in nginx. Multiple Servers and locations corresponding to the API are configured in the conf file. The present invention designs a template and a conf generation module for generating the nginx.conf file, and generates the nginx.conf file for each service separately.
[0088] Step 302, when the cluster makefile is being compiled, an OpenResty gateway program for the service is generated by specifying parameters to the Makefile and the service file corresponding to the parameters. The ser...
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