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

Method, device and computer equipment for limiting request frequency

A frequency and request sending technology, applied in the direction of electrical components, transmission systems, etc., can solve the problems that the request frequency cannot be counted, and the request frequency of the client cannot be accurately limited.

Active Publication Date: 2018-06-22
WUHAN DOUYU NETWORK TECH CO LTD
View PDF7 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Aiming at the problems existing in the prior art, the embodiment of the present invention provides a method, device and computer equipment for limiting the request frequency, which is used to solve the problem that the global statistics are not collected when limiting the request frequency of the user in the prior art. Request frequency, which leads to technical problems that cannot accurately limit the client's request frequency

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
  • Method, device and computer equipment for limiting request frequency
  • Method, device and computer equipment for limiting request frequency
  • Method, device and computer equipment for limiting request frequency

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0051] This embodiment provides a method for limiting request frequency, such as figure 1 As shown, the method includes:

[0052] S110. Obtain the first time stamp of the request sent by the user and the user identifier of the user;

[0053] In this step, the first time stamp of the request sent by the user and the user ID of the user are acquired. Wherein, the user in this embodiment may be multiple users, or only one user. In this way, the number of requests sent by the user is stored in the cache, and the number of requests sent by the user can be accurately counted. Wherein, the user identifier is the user's Internet protocol IP address, the user's login account ID in the live broadcast platform, or the device identification ID used by the user. When each user uses a device to log in to the live broadcast platform, the live broadcast platform will generate a unique device ID for the device.

[0054] For example, in the first total time period, if the user sends 5 reque...

Embodiment 2

[0086] Corresponding to Embodiment 1, this embodiment also provides a device for limiting request frequency, such as figure 2 As shown, the device includes: an acquisition unit 21, a first judgment unit 22, a generation unit 23, a statistical unit 24 and a second judgment unit 25; wherein,

[0087] The acquiring unit 21 is configured to acquire the first time stamp of the request sent by the user and the user identifier of the user.

[0088] Wherein, the user in this embodiment may be multiple users, or may be one user. In this way, the number of requests sent by the user is stored in the cache, and the number of requests sent by the user can be accurately counted. Wherein, the user identifier is the user's Internet protocol IP address, the user's login account ID in the live broadcast platform, or the device identification ID used by the user. When each user uses a device to log in to the live broadcast platform, the live broadcast platform will generate a unique device ID...

Embodiment 3

[0114] This embodiment also provides a computer device for limiting request frequency, such as image 3 As shown, the computer device includes: a radio frequency (Radio Frequency, RF) circuit 310, a memory 320, an input unit 330, a display unit 340, an audio circuit 350, a WiFi module 360, a processor 370, and a power supply 380 and other components. Those skilled in the art can understand that, image 3 The structure of the computer device shown in the above does not constitute a limitation to the computer device, and may include more or less components than those shown in the illustration, or combine some components, or arrange different components.

[0115] Combine below image 3 A detailed introduction to each component of computer equipment:

[0116]The RF circuit 310 can be used for receiving and sending signals, especially, after receiving the downlink information of the base station, the processor 370 processes it. Generally, the RF circuit 310 includes, but is not ...

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 provides a method, device and computer equipment for limiting request frequency. The method for limiting the request frequency comprises the following steps: obtaining a first time stampof a user sending the request and the user identification of the user; judging whether the fusing mechanism to limit the request frequency is started or not, and confirming a first time slot (slot) of the first time stamp if confirming that the fusing mechanism is closed; generating a unique first sending request identification key value in each slot for the user according to the first slot corresponding to the first time stamp and the user identification; counting the number of the first key values in a first total time period, wherein the first total time period includes the time period corresponding to each first slot; and judging whether the requests sent by the user in the first total time period are all sent successfully or not according to the number of the first key values; if successful, continuing to judge whether the number of the first key values exceeds a first threshold or not; and if the preset first threshold value is exceeded, rejecting the request sent by the user currently.

Description

technical field [0001] The invention belongs to the technical field of network development, and in particular relates to a method, device and computer equipment for limiting request frequency. Background technique [0002] Online servers often encounter situations where the amount of requests is too high or the interface is swiped. For example, a lottery draw for a certain event will attract a lot of requests. At this time, on the one hand, we need to improve the performance of the interface, and on the other hand, we also need to impose a certain frequency limit on requests. [0003] However, the current mainstream method of limiting the request frequency cannot count the global request data, but only restricts the request data of a single machine, so it cannot accurately limit the request frequency of the corresponding client. Contents of the invention [0004] Aiming at the problems existing in the prior art, the embodiment of the present invention provides a method, d...

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/08
CPCH04L67/146H04L67/62H04L67/60
Inventor 李奇张文明陈少杰
Owner WUHAN DOUYU NETWORK TECH CO LTD
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