Access frequency control system and method

A technology of access frequency and control system, applied in the computer field, can solve problems such as non-universal solutions, waste of system resources, waste of computing resources, etc., to achieve the effect of reducing uncertain risks and saving operating computing resources

Active Publication Date: 2022-03-25
TENCENT TECH (SHENZHEN) CO LTD
View PDF11 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] 1. The interception point of the existing technology is too lagging. When some access needs to be intercepted on the business side, the corresponding logic has already been executed, wasting a lot of system resources
[0005] 2. The scheme is not universal, and each place needs to be coded repeatedly
[0006] 3. Too many system resources are occupied, and the business side generally uses the framework of the corresponding language. This part of the computing resources is completely wasted
[0007] 4. Hard-coded, error-prone, when new rules are added, the original code needs to be changed, and the entire testing process needs to be revisited, which introduces corresponding risks (especially scripting language, errors can only be found at runtime)

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
  • Access frequency control system and method
  • Access frequency control system and method
  • Access frequency control system and method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0082] Based on the above hardware environment, the present invention provides an access frequency control system, figure 2 is the architecture diagram of the system, such as figure 2 As shown, the system includes: a policy setting module 10 , a data processing module 30 and a local interception module 20 .

[0083] The policy setting module 10 is used for setting interception rules.

[0084] Specifically, the interception rules include setting statistical time windows and statistical thresholds for different resource numbers RIDs. Resource ID (Resource Identification) is used to uniquely identify the resource to be accessed. The resource in the RID is an abstract name that can represent cgi, interface, or any service on the business side, for example, QQ news. For QQ news, its resource number RID may be 10000, for example. The statistical time window refers to the time range used to count the access frequency, such as one second; the statistical threshold refers to the ...

Embodiment 2

[0104] Figure 4 is another access frequency control system provided by the embodiment of the present invention, such as Figure 4 As shown, the system includes: a policy setting module 10 , a data processing module 30 and a local interception module 20 .

[0105] The policy setting module 10 includes:

[0106] The interception rule setting unit 101 is used for setting interception rules.

[0107] The list setting unit 102 is used for setting the reporting server list and the relay server list.

[0108] The local interception module 20 is configured to obtain an access request, generate a report data list according to the access request, send the report data list to the data processing module, obtain the interception description data generated by the data processing module, and obtain the interception description data generated by the data processing module. The data determines whether the access request is passed.

[0109] Specifically, the local interception module 20 in...

Embodiment 3

[0159] like Figure 10 As shown, an embodiment of the present invention provides an access frequency control method, including:

[0160] Step S101, a policy setting module sets an interception rule.

[0161] Step S102, the local interception module obtains the access request, generates a report data list according to the access request, and sends the report data list to the data processing module.

[0162] Step S103, the data processing module obtains the interception rule, receives the report data list sent by the local interception module, and generates interception description data according to the report data list and the interception rule.

[0163] Step S104, the local interception module obtains the interception description data generated by the data processing module, and judges whether the access request is passed according to the interception description data.

[0164] As an optional embodiment, the data processing module includes multiple distributed reporting serv...

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 discloses an access frequency control system and method, comprising: a policy setting module, a data processing module and a local interception module, the policy setting module is used to set interception rules; the local interception module is used to obtain access requests, and according to the access request Generate the reported data list, send the reported data list to the data processing module, obtain the interception description data generated by the data processing module, and judge whether the access request is passed according to the interception description data; the data processing module is used to obtain the interception rules, and receive the local interception module to send report data list, and generate interception description data according to the report data list and interception rules. The present invention intercepts access at the interface forwarding layer, saving unnecessary running computing resources at the back end; in addition, the present invention has no intrusion into business codes, reducing uncertain risks brought about by business code changes.

Description

technical field [0001] The present invention relates to the field of computer technology, and in particular, to an access frequency control system and method. Background technique [0002] With the development of computer business, computer functions are gradually opened to the outside world, and high-frequency access to some background services will bring great risks to computers, causing background server avalanches and service jitters. Therefore, the protection of back-end services also needs to be put on the agenda. It is necessary to intercept abnormally high-frequency access, limit the calling frequency of certain APIs, ensure the robustness of services, and prevent the risk of avalanches and service jitters. [0003] In the prior art, when restricting access, a method generally adopted is to add a corresponding statistical interception function by hard coding on each interface that needs to control the access frequency. However, the existing technology has the follow...

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 Patents(China)
IPC IPC(8): H04L67/60H04L67/564
CPCH04L67/564H04L67/60
Inventor 嬴益虎郑榕孙琦
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