Interface request frequency control method

一种频率控制、接口的技术,应用在互联网通信领域,能够解决服务接口请求次数耗损、发起请求速度快等问题,达到减少恢复重试的次数、避免误拦截、提高效率的效果

Inactive Publication Date: 2019-09-24
SICHUAN JUMA TECH CO LTD
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

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
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/06H04L29/08
CPCH04L63/1466H04L67/53H04L67/56
Inventor 杨涛
Owner SICHUAN JUMA TECH 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