RocketMQ learning 13 - sequential messages, delayed messages and message filtering

As shown in the title, this paper focuses on sequential messages, delayed messages and message filtering.1, Sequential messageRocketMQ can only ensure the order of messages at the queue level. If you want to realize the sequential execution of a certain type of messages, you must send such messages to the same queue. You can use MessageQueueSel ...

Posted by nemethpeter on Tue, 08 Feb 2022 15:21:17 +0100

RocketMQ learning 12 - Message disk brushing

For data storage, RocketMQ uses the file programming model. In order to improve the writing performance of files, the memory mapping mechanism is usually introduced. The data is written to the page cache first, and then the page cache data is flushed to the disk. The performance and data reliability involved in writing must be considered. For t ...

Posted by cocell on Mon, 07 Feb 2022 10:06:26 +0100

RocketMQ learning 10 - message storage

The above is a picture found on the official website. After the producer sends the message, the broker generates the commitlog and ConsumerQueue files, and then the consumer obtains the message according to the starting physical address + message size in the commitlog in the ConsumerQueue, and then obtains the message for consumption.The follow ...

Posted by Tjeuten on Sun, 06 Feb 2022 09:22:36 +0100

RocketMQ concept and usage

Summary of JAVA back-end development knowledge (continuous update...) RocketMQ concept and usage 1, Overview    MetaQ is a distributed message middleware with Queue model. Based on publish and subscribe mode, it supports two modes: Topic and Queue. There are two consumption modes: Push and Pull. It supports strict message ...

Posted by Sir Mildred Pierce on Mon, 31 Jan 2022 20:27:06 +0100

Why does open source RocketMQ not support delay messages with arbitrary precision

Write in front In our daily development, we often encounter the business scenario of "triggering an event after a period of time". For example: If the e-commerce platform does not pay within 30 minutes after placing an order, the order will be automatically cancelledRed envelopes will not be collected for 24 hours and will be return ...

Posted by atrocious on Mon, 31 Jan 2022 13:14:27 +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 Part 5 basic usage of RocketMQ API

catalogue Producer Product Consumer I have learned the basic knowledge of Rocket and set up MQ stand-alone version and cluster environment. Now I will start the actual development and explain the basic use of RocketMQ according to the RocketMQ source code downloaded earlier: Producer Product In the example subproject of RocketMq's source ...

Posted by SirEddie on Fri, 28 Jan 2022 04:14:09 +0100

Implementation of retry mechanism (4m,10m,10m,1h,2h,6h,15h)

Project scenario: As I know, the project we are working on now has many external interfaces for the agent to call, but the response of some interfaces is not returned in real time. At this time, we need to respond to the agent by calling back the interface. During this period, other situations such as network instability may occur, resulting i ...

Posted by mordeith on Wed, 26 Jan 2022 10:14:43 +0100

Grain mall advanced level chapter

Grain mall advanced level chapter Content directory: 1, ElasticSearch 1.1 introduction to elasticserch: Full text search is the most common requirement. Open source Elasticsearch is the first choice of full-text search engines. It can quickly store, search and analyze massive data. Wikipedia, Stack Overflow and Github all use it. The bo ...

Posted by remnant on Mon, 24 Jan 2022 00:49:49 +0100

FreeRTOS learning message queue

Message queue FreeRTOS learning warehouse address: https://gitee.com/killerp/free-rtos_-study Message queue is the basic data structure of RTOS, which is used for data transmission between tasks and between tasks and interrupts. When message queuing is not used, if you want to transfer data between two tasks, you must transfer it throug ...

Posted by liamjw on Sat, 22 Jan 2022 20:49:29 +0100