Message processing method, device and equipment and storage medium

A message processing and message technology, applied in the Internet field, can solve problems such as peaks, troughs, low traffic, high pressure on servers and databases, etc., and achieve the effects of improving response speed, avoiding traffic peaks, and improving usage efficiency

Inactive Publication Date: 2019-11-05
北京蜜莱坞网络科技有限公司
View PDF3 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In many cases, users don't care about the results returned by the server, and many websites only have high traffic at certain moments, and low traffic at other times, resulting in peaks and troughs
[0003] At present, most websites use synchronous processing for high-concurrency scenarios. When a large number of write operations are input at a certain moment, the traffic received by the server suddenly increases, resulting in obvious peaks and troughs, resulting in high pressure on the server and database, which cannot be fully utilized. The resource performance of the server and database, and the processing effect of the server in different time periods have large deviations, which makes the use efficiency of the website not high, and the excessive number of visits leads to some users' access information not being processed in time

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
  • Message processing method, device and equipment and storage medium
  • Message processing method, device and equipment and storage medium
  • Message processing method, device and equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0046] figure 1 It is a schematic flowchart of a message processing method provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation of performing peak clipping on peaks presented by user traffic in a high concurrency scenario. The method can be executed by a message processing device, and the device can be implemented in software and / or hardware. Specifically, the device is integrated on the server. Such as figure 1 As shown, the message processing method used in this embodiment specifically includes the following steps:

[0047] S110. Obtain a user access request from the terminal.

[0048] Wherein, a terminal is any device that can send a user access request. Typically, the terminal may be a device such as a mobile phone, a tablet computer, or a smart watch.

[0049] A user access request can be any access request. Typically, the user access request may be a request for the user to obtain a verification code or a request for th...

Embodiment 2

[0065] figure 2 It is a schematic flowchart of a message processing method provided by Embodiment 2 of the present invention. This embodiment is further optimized on the basis of the foregoing embodiments. Such as figure 2 As shown, the message processing method provided in this embodiment specifically includes the following steps:

[0066] S210. Obtain user access information from the terminal.

[0067] S220. If the number of user access requests to be processed is greater than or equal to the first number threshold, store the acquired user access requests in a message cache queue.

[0068] S230. If the cache request response condition is met, aggregate the user access requests in the message cache queue.

[0069] The aggregation is merging user access requests with repeated response behaviors, or merging user access requests with common partial response behaviors.

[0070] Specifically, the user access requests in the message cache queue are aggregated, including:

...

Embodiment 3

[0084] image 3 It is a structural block diagram of a message processing device provided in Embodiment 3 of the present invention, which can execute the robot charging method provided in any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method. Such as image 3 As shown, the device includes: a user access request acquisition module 301 , a user access request storage module 302 and a user access request processing module 303 .

[0085] Wherein, the user access request obtaining module 301 is used to obtain the user access request from the terminal;

[0086] A user access request storage module 302, configured to store the obtained user access requests in a message cache queue if the number of user access requests to be processed is greater than or equal to a first number threshold, wherein the first number threshold is less than the maximum number of visits of the server;

[0087] The user access reques...

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 embodiment of the invention discloses a message processing method and device, equipment and a storage medium. The method comprises the following steps: acquiring a user access request from a terminal; if the number of the to-be-processed user access requests is greater than or equal to a first number threshold, storing the obtained user access requests in a message cache queue, the first number threshold being smaller than the maximum page view of the server; and if the cache request response condition is met, processing the user access request in the message cache queue. The embodiment ofthe invention provides a message processing method and device, equipment and a storage medium, and aims to realize peak clipping and valley flattening in a high-concurrency scene, improve the processing speed of user access information and reduce the pressure of a server and a database.

Description

technical field [0001] The embodiments of the present invention relate to Internet technologies, and in particular to a message processing method, device, equipment and storage medium. Background technique [0002] In the Internet age, the concurrency of websites is very high, and the concurrency of write operations is also high. Most of the time, users don't care about the results returned by the server, and many websites only have high traffic at certain moments, and low traffic at other times, resulting in peaks and troughs. [0003] At present, most websites use synchronous processing for high-concurrency scenarios. When a large number of write operations are input at a certain moment, the traffic received by the server suddenly increases, resulting in obvious peaks and troughs, resulting in high pressure on the server and database, which cannot be fully utilized. The resource performance of the server and database, and the processing effect of the server in different t...

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/568H04L67/60
Inventor 王有圆
Owner 北京蜜莱坞网络科技有限公司
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