ConsumeQueue for source code analysis

ConsumeQueue for source code analysis When sending a message, the data is displayed in the ConsumeQueue Five messages are sent continuously. The messages are of variable length. First, all information is put into the Commitlog. Each message needs to be locked when it is put into the Commitlog to ensure sequential writing. ​ After the Comm ...

Posted by adnan1983 on Mon, 29 Nov 2021 11:06:44 -0800

Namesrv for RocketMQ Source Analysis

Namesrv for RocketMQ Source Analysis Source analysis is more content points, of course, we can not read all the source code of RocketMQ, so we interpret the core, focus source code. The source code to be interpreted is as follows: 1,RocketMQ Overall architecture of source analysis 2,RocketMQ Source Analysis NameServer 3,RocketMQ Source Analy ...

Posted by bonekrusher on Sun, 28 Nov 2021 16:41:14 -0800

Try RocketMQ, transaction messages, and not_ CONSUME_ The yet message cannot be consumed

The rocketmq version is 4.9.2. The version of rocketmq spring boot starter is 2.2.1 1, Code Producer code App class package com.zgd.springboot.demo.simple; import java.util.Date; import com.zgd.springboot.demo.simple.mq.MQProducer; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.Sprin ...

Posted by Paul_Bunyan on Fri, 26 Nov 2021 16:47:25 -0800

Days of Pull Source Analysis of RocketMQ Consumer Startup Process and Messages (Nursery Level Analysis)

Source Version 4.8.0 demo code for the official Consumer consumption message DefaultMQPushConsumer consumer = new DefaultMQPushConsumer("please_rename_unique_group_name_4"); // 1. Set NamesrvAddr address consumer.setNamesrvAddr("127.0.0.1:9876"); // 2. Set Consumer Location Optional Value Reference Enumeration Co ...

Posted by Jbert2 on Thu, 25 Nov 2021 10:58:06 -0800

springboot integration rocketmq failure record

Generally, the integration of a middleware, such as redis and elastic job, is divided into the following steps 1. Import start corresponding to springboot 2. Write the configuration file and the corresponding configuration information 3. Define the attribute class corresponding to the configuration file and load the configuration information ...

Posted by ugh82 on Wed, 17 Nov 2021 02:26:31 -0800

In depth analysis of RocketMQ source code - message storage module

1, IntroductionRocketMQ is Alibaba's open source distributed messaging middleware. It draws on Kafka's implementation and supports functions such as message subscription and publishing, sequential message, transaction message, timing message, message backtracking, dead letter queue and so on. RocketMQ architecture is mainly divided into four pa ...

Posted by Kold on Mon, 08 Nov 2021 18:12:18 -0800

Detailed explanation of RocketMQ source code | Broker Chapter 3: CommitLog, index and consumption queue

summary In the previous chapter, we have introduced various levels and some details of the Broker's file system. In this chapter, we will continue to understand some details of the three files CommitLog, IndexFile and ConsumerQueue in the logical storage layer. Finally, we will compare the persistence structure and design rationality of RocketM ...

Posted by LanceEh on Sun, 07 Nov 2021 17:31:50 -0800

RocketMQ source code analysis [2] NameServer startup process source code analysis

entrance The startup entry of the NameServer source code is in the main method of the NamesrvStartup class You can see that the methods are well encapsulated, and each method does one thing. The core method is these two NamesrvController controller = createNamesrvController(args); start(controller); How is NamesrvController create ...

Posted by Jezza on Tue, 21 Sep 2021 16:08:29 -0700

ConsumeQueue construction process analysis

1. Preface Theoretically, RocketMQ can run normally as long as there is a CommitLog file. Why maintain the ConsumeQueue file? ​ ConsumeQueue is a consumption queue, which is introduced to improve the consumption speed of consumers. After all, RocketMQ is based on the Topic subscription mode. Consumers often only care about the messages they s ...

Posted by russy on Tue, 07 Sep 2021 13:10:43 -0700