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

Message processing method and device, and electronic device

A processing method and technology of a processing device, which are applied in the directions of multi-programming device, electrical digital data processing, program control design, etc., can solve the problems of high scheduling pressure on the server side, weak accumulation of timing messages, accumulation of timing messages, etc. The effect of random file reading and writing, reducing accumulation, and improving accumulation ability

Pending Publication Date: 2018-08-17
ALIBABA GRP HLDG LTD
View PDF7 Cites 20 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the process of realizing the present invention, the inventor found that the prior art has the following defects: the accumulation ability of timing messages is weak. When the number of timing messages is large, the scheduling pressure on the server side is high and the scheduling ability is insufficient, resulting in a large number of timing messages piling up, causing serious problems. delayed delivery of

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 and device, and electronic device
  • Message processing method and device, and electronic device
  • Message processing method and device, and electronic device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0036] figure 2 It is one of the schematic flowcharts of the message processing method provided by the embodiment of the present invention.

[0037] Such as figure 2 As shown, a method for processing a message in an embodiment of the present invention may include the following steps:

[0038] Step 210, receiving a timing message, and writing the timing message into a data file. This step can be realized by running a software program in the server.

[0039] On the server side, for example, a storage engine in the server may receive a timing message from a message generator (such as a client), and write the timing message into a data file through the storage engine.

[0040] Step 220, according to the delay level of the timing message, store the index information of the timing message in the corresponding timing queue. This step can be realized by running a software program in the server.

[0041] In an embodiment of the present invention, the timing message may include a...

Embodiment 2

[0055] image 3 The second schematic flowchart of the message processing method provided by the embodiment of the present invention.

[0056] Such as image 3 As shown, a method for processing a message in an embodiment of the present invention may include the following steps:

[0057] Step 310, receiving a timing message, and writing the timing message into a data file. This step can be realized by running a software program in the server.

[0058] For the implementation process of this step, reference may be made to step 210, and for the sake of brevity, details are not repeated here.

[0059] Step 320, modify the original topic information of the timed message, and add preset additional topic information on the basis of retaining the original topic information to form new topic information. This step can be realized by running a software program in the server.

[0060] Those skilled in the art can understand that the message topic (Topic) is used to classify messages. ...

Embodiment 3

[0082] Figure 5 The third schematic flowchart of the message processing method provided by the embodiment of the present invention.

[0083] Such as Figure 5 As shown, in the method for processing a message provided by the embodiment of the present invention, multiple timing queues may be set, and the multiple timing queues correspond to multiple preset delay levels respectively. The method may include the following steps:

[0084] Step 410, receiving a timing message, and writing the timing message into a data file. This step can be realized by running a software program in the server.

[0085] On the server side, for example, a storage engine in the server may receive a timing message from a message generator (such as a client), and write the timing message into a data file through the storage engine.

[0086] Step 420, according to the delay level of the timing message, store the index information of the timing message in the corresponding timing queue. This step can ...

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

An embodiment of the present invention provides a message processing method and device, and an electronic device. A plurality of timing queues are provided, and the plurality of timing queues correspond to a plurality of preset delay levels respectively. The message processing method includes: receiving a timing message, and writing the timing message into a data file; storing index information ofthe timing message in the corresponding timing queue according to the delay level of the timing message; separately monitoring the plurality of timing queues to determine whether there is a timing message that satisfies a preset delivery condition; delivering the index information of the timing message that satisfies the preset delivery condition to a target queue if there is a timing message that satisfies the preset delivery condition so as to allow the user to acquire the timing message that satisfies the preset delivery condition through the index information. The invention improves the timing message stacking capability, and when the number of timing messages is large, the timing message delay errors can be reduced, and the timing messages are guaranteed to be delivered on time to agreater extent.

Description

technical field [0001] The embodiments of the present invention are in the field of computer technology, and in particular, relate to a message processing method, device, and equipment. Background technique [0002] Most message middleware, such as Alibaba Cloud MQ (Message Queue) and MetaQ (Metamorphosis), can support scheduled messages or delayed messages. At present, timed messages or delayed messages have been applied to many business scenarios. Here is a simple example: when an order is created on a shopping platform (for example, Tmall), it is assumed that the order will be closed if it is not paid within 45 minutes. Just generate a delayed message (or timing message). In our real life, especially in the process of network interaction, scheduled messages or delayed messages can be seen everywhere. [0003] In the related art, the implementation of timing messages (or delayed messages) mainly adopts the following method: after the storage engine receives the timing me...

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): G06F9/48
CPCG06F9/4881
Inventor 周新宇王小瑞冯嘉
Owner ALIBABA GRP HLDG 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