How MQ guarantees that no message is lost? Answer the interviewer like this: I Want U
Catalog
Preface
RocketMQ
RabbitMQ
Kafka
Preface
When it comes to the job hunting phase, you must have been asked how MQ guarantees the reliability of messages or how MQ guarantees that messages are not lost. We all know that MQ sending messages is generally divided into three phases: producer sending messages to MQ, MQ storing mes ...
Posted by efegue on Tue, 08 Mar 2022 18:07:04 +0100
RabbitMQ learning notes
1 what is MQ
MQ (message queue): translated into message queue. Through the typical producer and consumer model, producers constantly produce messages to the message queue, and consumers constantly get messages from the queue. Because the production and consumption of messages are asynchronous, and only care about the sending and receiving of ...
Posted by tekkenlord on Tue, 22 Feb 2022 13:39:53 +0100
RocketMQ source code -- 4--NameServer startup process
RocketMQ source code – 4 – NameServer source code
1. Start NameServer with source code
Starting the source code is actually quite simple. First, you go to the official website of RocketMQ, download the source code package, then use idea to open it and start it directly. You will find that the console prompts you to configur ...
Posted by RJDavison on Mon, 31 Jan 2022 12:48:26 +0100
rocketMq message store commitLog
sketch
This article analyzes the open source version 4.8.0 of rocketMq; The rocketMq process is briefly described as follows:
Nameserv: as a registration center, the broker starts to register with nameserv. At the same time, it regularly sends heartbeat to nameserv to tell nameserv that it is still alive. Then, in addition to maintaining ...
Posted by artist-ink on Sat, 22 Jan 2022 04:03:15 +0100
rocketMq message store buildIndex
preface
The last article introduced that there are two dispatchers in the} dispatcherList, one of which is buildIndex. As the name suggests, this is to establish an index to facilitate developers to query messages through keywords and judge whether the message content is correct or missing. This is also an advantage over kafka.
principle ...
Posted by pyrodude on Thu, 20 Jan 2022 10:28:41 +0100
According to personal analysis and understanding, does the project need MQ technology
According to personal analysis and understanding, does the project need MQ technology
Order item - > order specification - > fulfillment set - > fulfillment process - > OPU
The above is the order framework process structure abstracted by the company according to the order business.
The OPU here is the smallest execution unit, whi ...
Posted by Sgarissta on Sat, 15 Jan 2022 17:09:12 +0100
RabbitMQ learning -- learning of delay queue
Concept of delay queue
The delay queue is orderly. Its most important feature is reflected in its delay attribute. The elements in the delay queue * * want to be taken out and processed after or before the specified time. In short, the delay queue is a queue used to store the elements that need to be processed at the specified time.
Delay que ...
Posted by sickness01 on Fri, 14 Jan 2022 08:12:01 +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
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
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