rocketmq transaction message

The transaction message of rocketmq is used as a solution to distributed transactions on some occasions. Today, let's analyze the transaction message of rocketmq catalogue 1. Transaction message flow process 2. The producer sends a transaction message (half message) 3. The broker handles the half message 4. The producer executes a local tr ...

Posted on Sat, 04 Dec 2021 21:41:55 -0500 by sawade

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

Rocketmq 4.8.0 2 master slave asynchronous cluster installation

Download installation package Execute the following command wget https://archive.apache.org/dist/rocketmq/4.8.0/rocketmq-all-4.8.0-bin-release.zip or https://rocketmq.apache.org/release_notes/release-notes-4.8.0/   Download the installation package from the official website and upload it to the server folder.   decompression ...

Posted on Fri, 12 Nov 2021 09:12:06 -0500 by bslevin

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

RocketMQ custom message queue selector to ensure message order

How to ensure global order? The simplest way to ensure global order is that there is only one queue in topic, which can ensure global order, but will anyone use it like this? Certainly not, because the performance, throughput and security will be very poor Therefore, it is to ensure local order, not global order Ensure orderly usage scenario ...

Posted on Wed, 20 Oct 2021 14:44:55 -0400 by jb60606

Linux executes the official example of RocketMQ to test whether the cluster is easy to use

Let's start with the conclusion Send message: 1000 messages will be sent by default sh bin/tools.sh org.apache.rocketmq.example.quickstart.Producer Receive message: sh bin/tools.sh org.apache.rocketmq.example.quickstart.Consumer The above two commands need to be executed in the installation directory of RocketMQ, and the environment vari ...

Posted on Sun, 17 Oct 2021 00:57:29 -0400 by mcfmullen

Consumer reported consumption site analysis

1. Preface In message oriented middleware, consumers generally need to return an ACK to the Broker for a message that has been successfully consumed. Its purpose is to let the Broker know that the message has been successfully consumed and there is no need to deliver it to other consumers for retry. In RocketMQ, the specific implementation of ...

Posted on Sun, 10 Oct 2021 08:59:53 -0400 by Optimo

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

RocketMQ source code analysis 12 (sequential message flow)

RocketMQ version 4.6.0 records the process of viewing the source code Sequential consumption is a little more complicated, mainly because sequential consumption has an impact on rebalancing and message pulling. Counterbalance Let's first look at the rebalancing. The main difference is that after calculating the consumption queue allocated ...

Posted on Tue, 28 Sep 2021 03:16:21 -0400 by stevehaysom

RocketMQ source code analysis - Consumer

catalog: RocketMQ source code analysis -- building source code environmentRocketMQ source code analysis -- NameServerRocketMQ source code analysis - BrokerRocketMQ source code analysis - ProducerRocketMQ source code analysis - message storageRocketMQ source code analysis - Consumer Understand the message Consumer: Message consumption is carr ...

Posted on Sat, 25 Sep 2021 05:05:22 -0400 by stepn