RocketMq cluster installation & spring boot integration
catalogue
1, RocketMQ introduction
2, Noun interpretation
3, Installation
Installation mode
preparation
Build RocketMQ cluster in traditional way
4, Integrate Springboot
1, RocketMQ introduction
RocketMQ is a distributed messaging middleware, which was originally developed by Alibaba's ...
Posted by tommyinnn on Wed, 10 Nov 2021 20:32:06 +0100
Message storage structure of RocketMQ
Storage path configuration of files
broker.properties
#Storage path
storePathRootDir=/app/rocketmq/store
#commitLog storage path
storePathCommitLog=/app/rocketmq/store/commitlog
#Consumption queue storage path storage path
storePathConsumeQueue=/app/rocketmq/store/consumequeue
#Message index storage path
storePathIndex=/app/rocketmq/store/ind ...
Posted by machina3k on Sat, 30 Oct 2021 09:20:18 +0200
RocketMQ uses the RocketMQ native API to send and receive messages
Create project
pom file
Create a maven project or module and add a rocketmq client dependency.
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache ...
Posted by xenoalien on Fri, 29 Oct 2021 10:40:37 +0200
2, Routing center NameServer of RockerMQ
Routing center NameServer
What data is stored in the routing center?How to avoid a single point of failure of nameserver?How is it different from eukera and zookeeper?
1, NamesServer architecture design
How do producers know which server to send messages to in a multi broker server?When a server goes down, how can producers perceive it ...
Posted by sup on Sun, 24 Oct 2021 20:59:41 +0200
13 rocketmq development model
In the previous part, we can build a RocketMQ cluster, and then use the command line to write messages to RocketMQ and consume them. In this part, let's look at how to use RocketMQ in the project.
1, RocketMQ native API usage
Using RocketMQ's native API development is the simplest and most reliable way at present. Here, we use SpringBoot ...
Posted by John Canyon on Wed, 20 Oct 2021 09:54:46 +0200
SpringCloudAlibaba - Implementation of RocketMQ Distributed Transaction Message
Preface
RocketMQ provides transaction messages to resolve issues where the program rolls back abnormally but the message has been sent, such as service B needs to modify user data after service A inserts a data, service A sends a message and program exception causes data insertion rollback, while service B listens for messages and modifies ...
Posted by merrydown on Tue, 28 Sep 2021 18:04:57 +0200
RocketMQ source code analysis [3] Broker startup process source code analysis
entrance
The source code entry for Broker startup is BrokerStartup.java
Core process
The main process is similar to NameServer startup
Create broker controllerStart the BrokerController
public static void main(String[] args) {
start(createBrokerController(args));
}
public static BrokerController start(BrokerController ...
Posted by Domhnall on Sat, 25 Sep 2021 12:15:14 +0200