Proficient in RocketMQ series: tearful 15000 words in-depth analysis of RocketMQ consumer start process source code

1, Overview The message consumption of RocketMQ includes two modes: push and pull. The pull mode is officially not recommended, so we mainly introduce the push mode. Special note: the source code of this paper is based on RocketMQ4.8. 2, Push mode startup process 1. consumer code snippet package com.example.demo.rocketmq; import org.apache ...

Posted on Wed, 06 Oct 2021 17:34:38 -0400 by Darghon

RabbitMQ working mode with pictures and texts

1, Simple mode 1. Simple mode The first mock exam is a one to one mode, one producer, one consumer, and the producer sends messages to consumers. Producer: the program that sends the message Consumer: the receiver of the message, who will always wait for the message to arrive Message queue: similar to a mailbox, it can cache message ...

Posted on Wed, 15 Sep 2021 15:48:46 -0400 by khaine

Message confirmation mechanism of RabbitMq and its application in RabbitMq chat function

1. Causes of message loss 1. When the sender sends a message, the message is lost. It seems that the message has been sent 2.mq has received the message, but the consumer did not receive it when consuming Ensure reliable arrival at p - > b, e - > Q and Q - > C; (picture from Shangri Valley) 2. Callback function and configuration on ...

Posted on Sun, 12 Sep 2021 22:40:04 -0400 by ir4z0r