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

Interface request frequency control method

A frequency control and interface technology, applied in the field of Internet communication, can solve the problems of service interface request consumption and rapid request initiation, and achieve the effect of reducing the number of recovery retries, avoiding false interception, and improving efficiency.

Inactive Publication Date: 2019-09-24
四川驹马科技有限公司
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] When using a third-party service interface, in order to avoid malicious calls, the frequency of calls is usually controlled, and requests exceeding a certain frequency are rejected. However, some service providers will set a limit on the number of requests per day for the corresponding interface according to the actual cooperation situation. The request speed is too fast (the interval is within a few milliseconds), even if it is a normal request, it will be intercepted by the third-party service as a malicious attack, resulting in the loss of the number of requests for the service interface

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
  • Interface request frequency control method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0024] Such as figure 1 As shown, a method for interface request frequency control includes the following steps:

[0025] S1. Intercept the request sent by the requesting party to the third-party interface service provider. The interception relies on setting up a request agent to intercept all the sent requests. When the interface call request sent by the requesting party is intercepted, go to step S2;

[0026] S2. Calculate the time interval between the request and the last request initiated by the same requesting party, and proceed to step S3;

[0027] S3. Determine whether the interval is greater than or equal to the speed limit threshold, if yes, go to step S4; otherwise, go to step S8; the speed limit threshold is preset.

[0028] S4. Initiate a request to the third-party interface service provider, and record the request response result. Recording the request response result is conducive to feedback to the request sender, and then enter step S5;

[0029] S5. Determine ...

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 interface request frequency control method. The method comprises the following steps: S1, intercepting a request sent by a requester to a third-party interface service provider; S2, calculating the time interval between the current request initiation and the last request initiation, judging whether the interval is greater than or equal to a speed limit threshold, if yes, entering a step S4, and otherwise, entering a step S3; S3, suspending a request sent to a third-party interface service provider by the requesting party at present, setting recovery time, and entering the step S2 after the recovery time is reached; and S4, initiating a request to a third-party interface service provider. Through adding the request agency, the sent request frequency is controlled, the request frequency is sent to the third-party service provider at a reasonable frequency, mistaken interception is avoided, and the mistaken loss of the request frequency can be reduced.

Description

technical field [0001] The invention relates to the technical field of Internet communication, in particular to a method for controlling interface request frequency. Background technique [0002] When using a third-party service interface, in order to avoid malicious calls, the frequency of calls is usually controlled, and requests exceeding a certain frequency are rejected. However, some service providers will set a daily request limit for the corresponding interface according to the actual cooperation situation, and sometimes initiate If the request speed is too fast (the interval is within a few milliseconds), even if it is a normal request, it will be intercepted by the third-party service as a malicious attack, resulting in the loss of the number of requests for the service interface. Contents of the invention [0003] In order to solve the problems existing in the prior art, the present invention provides a method for controlling the interface request frequency, whic...

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
IPC IPC(8): H04L29/06H04L29/08
CPCH04L63/1466H04L67/53H04L67/56
Inventor 杨涛
Owner 四川驹马科技有限公司
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