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

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

Example Embodiment

[0035] Example one

[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 message processing method according to an embodiment of the present invention may include the following steps:

[0038] Step 210: Receive a timing message and write the timing message into a data file. This step can be implemented by running a software program in the server.

[0039] On the server side, for example, the storage engine in the server can receive the timing messages generated by the message generator (for example, the client), and write the timing messages into the 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 implemented by running a software program in the server.

[0041] In an embodiment of the present invent...

Example Embodiment

[0054] Example two

[0055] image 3 It is the second schematic flowchart of a message processing method provided by an embodiment of the present invention.

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

[0057] Step 310: Receive a timing message, and write the timing message into a data file. This step can be implemented by running a software program in the server.

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

[0059] Step 320: Modify the original theme information of the timing message, and add preset additional theme information on the basis of retaining the original theme information to form new theme information. This step can be implemented 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....

Example Embodiment

[0081] Example three

[0082] Figure 5 This is 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 a message processing method provided by an embodiment of the present invention, multiple timing queues may be set, and the multiple timing queues respectively correspond to multiple preset delay levels. The method may include the following steps:

[0084] Step 410: Receive the timing message, and write the timing message into the data file. This step can be implemented by running a software program in the server.

[0085] On the server side, for example, the storage engine in the server can receive the timing messages generated by the message generator (for example, the client), and write the timing messages into the 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 into the cor...

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 Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products