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

A message processing method and device

A message processing and message technology, which is applied in the field of data processing, can solve problems such as message inconsistency, message processing disorder, etc.

Active Publication Date: 2021-03-19
BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The purpose of the embodiments of the present invention is to provide a message processing method and device to solve the problems in the prior art that there are inconsistencies in messages in databases of different systems and disordered message processing

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0056] The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.

[0057] Aiming at the problems of inconsistency of messages in databases of different systems and disordered processing of messages in the prior art, an embodiment of the present invention provides a message processing method and device, which uses the following steps to complete message processing:

[0058] The first server receives the message to be processed sent by the middleware, uses the user ID of the message to be processed, obtains the first thread allocated for the user ID, and reads the message to be processed through the first thread, and performs multi-thread processing on the message to be processed lock; when it is determined that the time stamp carried by the message to be processed is earlier than the latest time stamp of the acquired recorded data, send a message success confirmation mes...

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 provides a message processing method and device, and the method comprises: a first server receiving a to-be-processed message sent by message queue middleware, and theto-be-processed message carrying a user ID; the first server using the user ID to obtain a first thread distributed for the user ID, the first thread being used for processing each message generated by the user ID, the to-be-processed message being a change message received by the message queue middleware, and the change message being sent when the message changes in a database of a second server;the first server reading the to-be-processed message through the first thread and performing multi-thread locking on the to-be-processed message; and when the first server determines that the timestamp carried by the to-be-processed message is earlier than the latest timestamp of the acquired recorded data, the first server sending a message success confirmation message of the to-be-processed message through the first thread.

Description

technical field [0001] The invention relates to the field of data processing, in particular to a message processing method and device. Background technique [0002] Due to various uncertain factors, such as the server connection timeout of any system, data inconsistency occurs from time to time for the data in the database between different systems. The details will be described below. [0003] In the first step, the user sends a message to the X system; in the second step, the X system receives the A message sent by the user, and the X system is in the x system of the X system. 1 Write A message in the database; the third step, when x is monitored 1 The state of the A message in the database changes, where the state of the A message changes, for example, the A message is read or updated, where the updated A message refers to a message sent by the same user with the same content, and the message with the same content carries The time stamps of different time stamps are di...

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): G06F9/54G06F16/23
CPCG06F9/546G06F2209/547G06F16/23
Inventor 赵鸿楠艾国信汤文强周志成宋超
Owner BEIJING QIYI CENTURY SCI & TECH CO LTD