Message pushing method based on RabbitMQ

A message push and message sending technology, which is applied in the direction of communication between programs, instruments, multi-program devices, etc., can solve problems such as message loss, achieve the effect of increasing the sending rate, good stability, and optimizing the confirmation process of consumers

Pending Publication Date: 2020-07-17
山东汇贸电子口岸有限公司
View PDF2 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In practical applications, it may happen that the consumer receives the message in the Queue (queue), but terminates due to an accident before the processing is completed. In this case, the message may be lost.

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 pushing method based on RabbitMQ

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present invention clearer, the present invention will be described in detail below in conjunction with the embodiments. It should be noted that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0029] The RabbitMQ-based message push method optimizes the message sending confirmation mechanism, and the specific optimization is as follows:

[0030] First, the message confirmation mechanism

[0031] By setting and triggering the setReturnCallback callback to prevent the exchange (Exchange) from discarding the message if it does not find the queue (Queue), the user is notified to check the problem through the callback;

[0032] Second, the timing task mechanism

[0033] Pull and re-deliver messages that fail to deliver through scheduled tasks;

[0034] Third, the producer consumption confirmatio...

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 particularly relates to a message pushing method based on RabbitMQ. According to the RabbitMQ-based message pushing method, a message confirmation mechanism, a timed task mechanism and aproducer consumption confirmation mechanism are optimized. According to the RabbitMQ-based message pushing method, the confirmation process of a producer and the confirmation process of a consumer inRabbitMQ are combined and optimized, so that the producer can know that the consumer successfully receives a message more stably, and the sending rate of a persistent message is increased. In the consumer confirmation process, the consumer confirmation process is optimized; the situation that the consumer refuses the message is processed; the consumer can be prevented from receiving repeated messages; the overall performance of the system is greatly improved; and the stability is better.

Description

technical field [0001] The invention relates to the technical field of web message push, in particular to a message push method based on RabbitMQ. Background technique [0002] AMQP, or Advanced Message Queuing Protocol, is an open standard for application layer protocols designed for message-oriented middleware. [0003] Message queuing is a common technology used in many systems. The asynchronous and loosely coupled mechanism of message queuing can improve the utilization of system resources and the scalability of the system. At the same time, message queuing comes with distributed and disaster recovery features. Thereby improving system performance and fault tolerance. [0004] RabbitMQ is an open source AMQP implementation. The server side is written in Erlang language and supports multiple clients. It is used to store and forward messages in a distributed system, and performs well in terms of ease of use, scalability, and high availability. ConnectionFactory, Connect...

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/548
Inventor 刘瑞魏金雷杨继伟徐士强张咏雪
Owner 山东汇贸电子口岸有限公司
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