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

A method, device and computer equipment for limiting request frequency

A technology of frequency and sending requests, applied in the direction of transmission system, electrical components, etc., can solve the problem of inability to accurately limit the frequency of client requests, and the frequency of requests is not counted.

Active Publication Date: 2020-09-08
WUHAN DOUYU NETWORK TECH CO LTD
View PDF7 Cites 0 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
  • A method, device and computer equipment for limiting request frequency
  • A method, device and computer equipment for limiting request frequency
  • A 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 computer device 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, b...

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 present invention provides a method, device and computer equipment for limiting request frequency. The method includes: obtaining a first timestamp of a request sent by a user and a user ID of the user; judging whether a circuit breaker mechanism for limiting request frequency is activated, If it is determined that the fuse mechanism is in a closed state, determine the first time slot of the first timestamp; generate a unique first transmission for the user in each of the slots according to the first slot corresponding to the first timestamp and the user ID Request to identify the key value; count the number of first key values ​​in the first total time period, the first total time period includes the time period corresponding to each first slot; according to the number of first key values, determine whether the user is in the first total time period. Whether all the requests sent within the time period are successfully sent, if successful, continue to judge whether the number of first key values ​​exceeds the first threshold, and if it exceeds the preset first threshold, reject the request currently sent by the user.

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 Patents(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