RocketMQ - send transaction message

1. Principle of transaction message The implementation principle of RocketMQ transaction message is based on two-stage commit and scheduled transaction status check to determine whether the message is finally committed or rolled back. 2. Transaction message start TransactionListener transactionListener = new TransactionListenerImpl(); Transa ...

Posted on Fri, 03 Dec 2021 05:12:45 -0500 by dey.souvik007

Test RabbitMQ message response (manual gear, automatic gear)

concept It may take some time for a consumer to complete a task. What happens if one of the consumers processes a long task and only completes part of it, and suddenly it hangs up. Once RabbitMQ delivers a message to the consumer, it immediately marks the message for deletion. In this case, a consumer suddenly hangs up, and we will lose the me ...

Posted on Thu, 02 Dec 2021 15:51:23 -0500 by ikelove

24_ Modify copy factor

After creating a theme, we can also modify the number of partitions, as well as the copy factor (number of copies). There are many usage scenarios for modifying replica factors. For example, the wrong number of replica factors is filled in when creating a topic and needs to be modified. For example, after running for a period of time, you want ...

Posted on Wed, 24 Nov 2021 20:22:05 -0500 by tisa

18_ View theme - modify theme - delete theme

1 view topics The kafka-topics.bat script has five instruction types: create, list, describe, alter, and delete. The list and describe instructions can be used to easily view the topic information. We have touched on the usage of the describe instruction in the previous content, which will be described in more detail in this section. You can ...

Posted on Tue, 23 Nov 2021 03:34:42 -0500 by watson516

Dead letter queue of RabbitMQ

1, What is a dead letter queue? Dead letter queue is a message mechanism in RabbitMQ. Dead letter messages will be specially processed by RabbitMQ. If dead letter queue is configured, dead letter messages will be thrown into dead letter delivery queue. If not configured, dead letter messages will be discarded. 2, Situation of dead lette ...

Posted on Sat, 06 Nov 2021 23:31:07 -0400 by kbaker

Paho - implementation and explanation of MQTT C Cient of Internet of things

Original link: https://blog.csdn.net/qq_39436605/article/details/80893954?ops_request_misc=&request_id=&biz_id=102&utm_term=mqtt%20c&utm_medium=distribute.pc_search_result.none-task-blog-2allsobaiduweb~default-6-80893954.pc_search_result_control_group&spm=1018.2226.3001.4187 1 Overview In the article implementation of ...

Posted on Sat, 06 Nov 2021 13:36:46 -0400 by beanman1

Integration of Alibaba cloud RockMQ and SpringBoot in 2021

preface: The open source version of Rocket is somewhat different from the commercial version of RocketMQ. It studies the commercial version of RocketMQ, which is the official document of Alibaba cloud. It feels a little messy. I don't quite understand. Although there are tutorials on the Internet, most of them are still a little missing. Somet ...

Posted on Wed, 03 Nov 2021 06:09:56 -0400 by heerajee

RocketMQ NameServer summary and core source code analysis

I. Introduction to NameServer NameServer is a lightweight name service specially designed for Rocketmq. It is simple, scalable, stateless, and nodes do not communicate with each other. The working principle of the entire Rocketmq cluster is shown in the following figure: ‚Äč It can be seen that the RocketMQ architecture is mainly divid ...

Posted on Sun, 31 Oct 2021 19:43:07 -0400 by prawn_86

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

Detailed explanation of Android message mechanism (source code analysis ThreadLocal, Looper, Handler, AsyncTask)

Android message mechanism 1 Overview The message mechanism of Android mainly refers to the running mechanism of Handler and the working process of MessageQueue and Looper attached to Handler. Android applications are event driven, and each event will be transformed into a system Message, namely Message. The Message contains information about ...

Posted on Wed, 01 Sep 2021 19:54:18 -0400 by ZaZall