Skip to content

Commit 94f9e33

Browse files
authored
feat: add version description (#120)
* Add version description
1 parent dbe617e commit 94f9e33

10 files changed

+20
-0
lines changed

Diff for: docs/rocketmq/rocketmq-commitlog.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
该文所涉及的 RocketMQ 源码版本为 4.9.3。
2+
13
# RocketMQ CommitLog 详解
24

35
commitlog 目录主要存储消息,为了保证性能,顺序写入,每一条消息的长度都不相同,每条消息的前面四个字节存储该条消息的总长度,每个文件大小默认为 1G,文件的命名是以 commitLog 起始偏移量命名的,可以通过修改 broker 配置文件中 mappedFileSizeCommitLog 属性改变文件大小

Diff for: docs/rocketmq/rocketmq-consumequeue.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
该文所涉及的 RocketMQ 源码版本为 4.9.3。
2+
13
# RocketMQ ConsumeQueue 详解
24

35
RocketMQ 基于主题订阅模式实现消息消费,消费者关注每一个主题下的所有消息,但是同一主题下的消息是不连续地存储在 CommitLog 文件中的,如果消费者直接从消息存储文件中遍历查找主题下的消息,效率会特别低。所以为了在查找消息的时候效率更高一些,设计了 ConsumeQueue 文件,可以看作 CommitLog 消费的目录文件.

Diff for: docs/rocketmq/rocketmq-consumer-start.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
该文所涉及的 RocketMQ 源码版本为 4.9.3。
2+
13
# RocketMQ 消费者启动流程
24

35
org.apache.rocketmq.client.impl.consumer.DefaultMQPushConsumerImpl#start

Diff for: docs/rocketmq/rocketmq-indexfile.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
该文所涉及的 RocketMQ 源码版本为 4.9.3。
2+
13
# RocketMQ IndexFile 详解
24

35
首先明确一下 IndexFile 的文件结构

Diff for: docs/rocketmq/rocketmq-mappedfile-detail.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
该文所涉及的 RocketMQ 源码版本为 4.9.3。
2+
13
# RocketMQ MappedFile 内存映射文件详解
24

35
1、MappedFile 初始化

Diff for: docs/rocketmq/rocketmq-nameserver-broker.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
该文所涉及的 RocketMQ 源码版本为 4.9.3。
2+
13
# RockerMQ Nameserver 如何与 Broker 进行通信的?
24

35
nameserver 每隔 10s 扫描一次 Broker,移除处于未激活状态的 Broker

Diff for: docs/rocketmq/rocketmq-producer-start.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
该文所涉及的 RocketMQ 源码版本为 4.9.3。
2+
13
# RocketMQ 生产者启动流程
24

35
入口:

Diff for: docs/rocketmq/rocketmq-pullmessage.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
该文所涉及的 RocketMQ 源码版本为 4.9.3。
2+
13
# RocketMQ 消息拉取流程
24

35
之前在消费者启动流程中描述过 MQClientInstance 的启动流程,在启动过程中会启动 PullMessageService,它继承了`ServiceThread`,并且 ServiceThread 实现了 Runnable 接口,所以是单独启动了一个线程

Diff for: docs/rocketmq/rocketmq-send-message.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
该文所涉及的 RocketMQ 源码版本为 4.9.3。
2+
13
# RocketMQ 消息发送流程
24

35
这里以同步发送为示例讲解:

Diff for: docs/rocketmq/rocketmq-send-store.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
该文所涉及的 RocketMQ 源码版本为 4.9.3。
2+
13
# RocketMQ 消息发送存储流程
24

35
第一步:检查消息存储状态

0 commit comments

Comments
 (0)