Message transmission method and device for message middleware MQ

A technology of message middleware and transmission method, applied in the field of message transmission of message middleware MQ, can solve problems such as low message reliability, and achieve the effects of improving reliability, preventing queue congestion and preventing loss

Active Publication Date: 2015-06-24
SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF6 Cites 40 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Since the messages that failed to be sent or failed to be consumed are discarded, the integrity of the message sent from the sender to

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 transmission method and device for message middleware MQ
  • Message transmission method and device for message middleware MQ
  • Message transmission method and device for message middleware MQ

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, but not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0051] like figure 1 As shown, the embodiment of the present invention provides a message transmission method of message middleware MQ, and the method may include the following steps:

[0052]Step 101: Obtain the target message to be transmitted, and determine the tag information in the log database of the messages adjacent to the target message;

[0053] Step 102: When it is determined that the marked information is a transmission failure, transfer the targe...

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 transmission method and device for message middleware MQ. The method comprises the steps that a target message which needs to be transmitted is obtained, and whether marking information of a message which is adjacent to the target message in a log database is failed to transmit is confirmed; if yes, the target message is transferred to the log database; if no, the target message is transmitted, and a transmission result is judged; when the transmission result is that the transmission is unsuccessful, the target message is transferred to the log database, and the transmission of the target message is marked to be unsuccessful; when the transmission result is that the transmission is successful, the target message is stored in a message queue and synchronized in the log database, and the transmission of the target message is marked to be successful; according to a preset retry mechanism, the marking information marked as a message which is failed to transmit in the log database is transmitted again, so that the reliability of messages is improved.

Description

technical field [0001] The invention relates to the field of computer applications, in particular to a message transmission method and device for message middleware MQ. Background technique [0002] As a message middleware, MQ (communication queue) is used to forward the message from the sender to the consumer, so as to realize the communication between the sender and the consumer. [0003] At present, the message transmission method using the message middleware MQ may include: the sender successfully sends multiple messages to the message middleware MQ in sequence, so that the message middleware MQ will pass the received message into the In the message queue, multiple messages in the message queue are sent to the consumer in sequence for consumption by the message consumer. When the sender fails to send the message, it discards the failed message, or when the consumer fails to consume the message, it discards the failed message. Since messages that failed to be sent or fa...

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): G06F17/30H04L29/06
Inventor 刘艺于振梅刘传浩张田
Owner SHANDONG LANGCHAO YUNTOU INFORMATION 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