Queue message uniformity implementing method and device, equipment and storage medium

An implementation method and consistency technology, applied in the direction of multi-program device, inter-program communication, etc., can solve problems that affect system performance, inconsistency, no solution, etc., and achieve the effect of improving system performance

Active Publication Date: 2018-05-08
BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF4 Cites 23 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Problems in any of the above steps will lead to inconsistencies
[0005] At present, there are only some solutio

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
  • Queue message uniformity implementing method and device, equipment and storage medium
  • Queue message uniformity implementing method and device, equipment and storage medium
  • Queue message uniformity implementing method and device, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0074] In order to make the technical solutions of the present invention clearer and more comprehensible, the solutions of the present invention are further described below with reference to the accompanying drawings and examples.

[0075] Obviously, the described embodiments are some, but not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of the present invention.

[0076] figure 1 It is a flow chart of the first embodiment of the method for realizing the consistency of queue messages according to the present invention. like figure 1 As shown, the following specific implementations are included.

[0077] In 101, the message sender starts a database transaction and a message transaction, and creates a message.

[0078] In 102, the message sender performs database transaction and message transaction submiss...

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 discloses a queue message uniformity implementing method and device, equipment and a storage medium, wherein the method comprises: opening a database business and a message business by amessage sender, creating messages, submitting the database business and the message business, transmitting the messages to a message receiver if submission is successful, with headers of messages carrying a message UUID (universally unique identifier) and replayTo queue address; after the message receiver receives the messages, opening the message business and the database business, saving the UUIDs of the messages to a database, submitting the database business and the message business after business logic is successfully executed, and if submission is successful, returning a message-responding consumption success confirming message to the message sender according to the replyTo queue address. The queue message uniformity implementing method and device, the equipment and the storage medium according to the scheme provide a complete frame model of queue message uniformity so that system performance and the like are improved.

Description

【Technical field】 [0001] The present invention relates to service processing technology, in particular to a method, device, device and storage medium for realizing the consistency of queue messages. 【Background technique】 [0002] In a business system, two services usually use message middleware to communicate, such as ActiveMQ, RabbittMQ, etc. Messages generally include queue messages (Queue) and subscription messages (Topic), and the present invention mainly focuses on queue messages. [0003] In practical applications, the message sender usually performs the operations of writing to the database and sending the message. The message receiver processes the message after receiving the message. It needs to ensure the consistency of the message between the sender and the receiver, that is, both parties send and consume correctly. The message is processed, and the business logic is correctly processed according to the message. [0004] To ensure consistency, the message sende...

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/54
Inventor 吴金霖
Owner BEIJING BAIDU NETCOM SCI & TECH CO 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