Unlock instant, AI-driven research and patent intelligence for your innovation.

Message processing method and message processing device

A message processing and message technology, which is applied in the direction of multi-program device, electronic digital data processing, inter-program communication, etc., can solve the problem of consistency between the target library and the source library, and cannot guarantee the strict timing of messages, etc., to achieve timing Good, the effect of the correct order of execution

Pending Publication Date: 2018-04-24
西安京迅递供应链科技有限公司
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The disadvantage of the existing technology is that: because the production message of the message queue and the consumption message of the client are carried out in parallel and multi-threaded, many message queues cannot guarantee the strict timing of messages
For example, for the update message and insert message of the same record, the update message may reach the client before the insert message, which causes great trouble to the consistency of the target library and the source library

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] Exemplary implementations of the present invention are described below in conjunction with the accompanying drawings, which include various details of the implementations of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0021] figure 1 is a schematic diagram of main steps of a message processing method according to an embodiment of the present invention. Such as figure 1 As shown, the message processing method in the embodiment of the present invention may mainly include the following steps A to F.

[0022] Step A: Determine the type of the received current message, which inclu...

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 message processing method and a message processing device. The message processing method provided by the invention comprises the following steps: judging the type to which a received current message belongs, wherein the type comprises an update type, an insertion type and a deletion type; if judging that the current message belongs to the update type, adding a time limiting condition into the current message to obtain a modified current message, wherein the time limiting condition is that the latest operation timestamp of a database is less than the current message timestamp; executing the modified current message; if the execution of the modified current message is failed, generating an insertion-type derived message corresponding to the current message; executingthe insertion-type derived message; and if the execution of the insertion-type derived message fails, re-executing the modified current message.

Description

technical field [0001] The invention relates to the technical field of computers and software thereof, in particular to a message processing method and a message processing device. Background technique [0002] In the field of Internet and software, database is very important. In real-world scenarios, data migration is often required. Data migration through message queuing technology is already a relatively common method in the industry. [0003] Message queuing technology is an asynchronous message subscription / production / consumption communication method. There are many existing message queue technologies, such as rocketMQ, kafka, zeroMQ, etc. [0004] The specific process of data migration through the message queue is: the server uses the message queue to encapsulate the insert (insert), update (update) or delete (delete) operations of the source database into messages of a specific format and produce them. The program obtains these messages, and then consumes the mess...

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): G06F9/54
CPCG06F9/546G06F2209/541
Inventor 方琪
Owner 西安京迅递供应链科技有限公司