Analysis of the original rocketmq core source code Part 11 - message processing part 4 - broker side to obtain the mappedFile of the added message
Get map file schematic
If the current file is full or the space is less than the current message length, you need to create a new filecommitlog[1G] files need to be created through allocateMappedFileServiceBuild two requests each time [create two commitlog files] and add them to the task poolThe additional message thread is blocked through ...
Posted by jrolands on Sun, 30 Jan 2022 15:29:17 +0100
RocketMQ learning 5 - select queue and other features
This article mainly involves the following contents when sending a message:Queue selection mechanism for sequential messagesRocketMQ keyRocketMQ tagRocketMQ msgIdQueue selection mechanism for sequential messagesIn many business scenarios, it is necessary to ensure the sequential processing of messages. For example, when orders flow to different ...
Posted by mbbout on Sun, 30 Jan 2022 11:32:15 +0100
RocketMQ transaction message principle
1, Principle of RocketMQ transaction message:
RocketMQ implements complete transaction messages after version 4.3. The MQ based distributed transaction scheme essentially encapsulates the local message table. The overall process is consistent with the local message table. The only difference is that the local message table is stored in MQ inst ...
Posted by kath421 on Wed, 26 Jan 2022 10:13:26 +0100
The hardest core of the station, one million words strong liver, RocketMq source code is hot and updated~
@Override
public void updateBrokerConfig(String brokerAddr,
Properties properties) throws RemotingConnectException, RemotingSendRequestException,
RemotingTimeoutException, UnsupportedEncodingException, InterruptedException, MQBrokerException {
defaultMQAdminExtImpl.updateBrokerConfig(brokerAddr, properties);
}
@Override
public ...
Posted by jtown on Fri, 21 Jan 2022 12:18:30 +0100
The hardest core of the station, one million words strong liver, RocketMq source code is hot and updated~
In this way, we have basically finished reading the Configuration class. This is a congestion model with a lot of content.
Next, go back to NamesrvController. Under the Configuration class, the FileWatchService class is declared. From the outside, it should be a file reading service. Go in and have a look:
org.apache.rocketmq.srvutil.File ...
Posted by jingcleovil on Thu, 20 Jan 2022 17:01:25 +0100
RocketMQ cluster setup
preface
Record RocketMQ
Quickly build RocketMQ cluster
Machine environment
Prepare three machines, root password root; IP address:
192.168.232.128 worker1
192.168.232.129 worker2
192.168.232.130 worker3
Create user
useradd oper
passwd oper (Password entry 123 qweasd)
system configuration
Switch the oper user and generate a key ...
Posted by Cragsterboy on Thu, 30 Dec 2021 00:48:08 +0100
Rocketmq distributed transaction processing details
Rocketmq distributed transaction processing details
I Related concepts Based on its message definition, RocketMQ extends two related concepts to transaction messages:
1. Half(Prepare) Message -- half message (preprocessed message) Semi message is a special message type. Messages in this state cannot be consumed by consumers temporarily. When ...
Posted by web_loone_08 on Tue, 28 Dec 2021 10:21:22 +0100
Message queue RocketMQ: Message Filtering
Article catalog
Message queue RocketMQ: (I) overview
Message queuing RocketMQ: (II) system architecture
Message queue RocketMQ: (III) sending ordinary messages (three methods)
Message queue RocketMQ: (IV) sequential messages
Message queue RocketMQ: (V) delay message
Message queue RocketMQ: (VII) batch messages
premise
Create a Maven J ...
Posted by glence on Sun, 26 Dec 2021 20:50:39 +0100
Another city! Two communities work together to create a new tool for API log monitoring
Since Apache RocketMQ entered the vision of global developers in 2016, it has developed into the core data base of technology in e-commerce, finance, education, science and technology and other fields.According to incomplete statistics, more than 70% of domestic users (including top 100 enterprises in various fields such as finance, insurance, ...
Posted by gernot on Thu, 16 Dec 2021 12:30:12 +0100
[RocketMQ] SpringBoot integrates RocketMQ transactions
1, Overview
Distributed transaction messages are a unique feature of RocketMQ. In many scenarios, the strong consistency of transactions is not required, but only the final consistency of transactions. At this point, transaction messages can well meet the requirements.
By putting the local transaction and message sending into one local tr ...
Posted by pazzy on Sun, 28 Nov 2021 16:58:58 +0100