# rocketmq_source **Repository Path**: chjgfg/rocketmq_source ## Basic Information - **Project Name**: rocketmq_source - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-04-13 - **Last Updated**: 2025-04-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: Java, rocketmq ## README ## Apache RocketMQ [![Build Status](https://travis-ci.org/apache/rocketmq.svg?branch=master)](https://travis-ci.org/apache/rocketmq) [![Coverage Status](https://coveralls.io/repos/github/apache/rocketmq/badge.svg?branch=master)](https://coveralls.io/github/apache/rocketmq?branch=master) [![CodeCov](https://codecov.io/gh/apache/rocketmq/branch/master/graph/badge.svg)](https://codecov.io/gh/apache/rocketmq) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.apache.rocketmq/rocketmq-all/badge.svg)](http://search.maven.org/#search%7Cga%7C1%7Corg.apache.rocketmq) [![GitHub release](https://img.shields.io/badge/release-download-orange.svg)](https://rocketmq.apache.org/dowloading/releases) [![License](https://img.shields.io/badge/license-Apache%202-4EB1BA.svg)](https://www.apache.org/licenses/LICENSE-2.0.html) [![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/apache/rocketmq.svg)](http://isitmaintained.com/project/apache/rocketmq "Average time to resolve an issue") [![Percentage of issues still open](http://isitmaintained.com/badge/open/apache/rocketmq.svg)](http://isitmaintained.com/project/apache/rocketmq "Percentage of issues still open") [![Twitter Follow](https://img.shields.io/twitter/follow/ApacheRocketMQ?style=social)](https://twitter.com/intent/follow?screen_name=ApacheRocketMQ) **[Apache RocketMQ](https://rocketmq.apache.org) is a distributed messaging and streaming platform with low latency, high performance and reliability, trillion-level capacity and flexible scalability.** It offers a variety of features: * Messaging patterns including publish/subscribe, request/reply and streaming * Financial grade transactional message * Built-in fault tolerance and high availability configuration options base on [DLedger](https://github.com/openmessaging/openmessaging-storage-dledger) * A variety of cross language clients, such as Java, C/C++, Python, Go * Pluggable transport protocols, such as TCP, SSL, AIO * Built-in message tracing capability, also support opentracing * Versatile big-data and streaming ecosytem integration * Message retroactivity by time or offset * Reliable FIFO and strict ordered messaging in the same queue * Efficient pull and push consumption model * Million-level message accumulation capacity in a single queue * Multiple messaging protocols like JMS and OpenMessaging * Flexible distributed scale-out deployment architecture * Lightning-fast batch message exchange system * Various message filter mechanics such as SQL and Tag * Docker images for isolated testing and cloud isolated clusters * Feature-rich administrative dashboard for configuration, metrics and monitoring * Authentication and authorization * Free open source connectors, for both sources and sinks ---------- ## Learn it & Contact us * Mailing Lists: * Home: * Docs: * Issues: * Rips: * Ask: * Slack: ---------- ## Apache RocketMQ Community * [RocketMQ Community Projects](https://github.com/apache/rocketmq-externals) ---------- ## Contributing We always welcome new contributions, whether for trivial cleanups, [big new features](https://github.com/apache/rocketmq/wiki/RocketMQ-Improvement-Proposal) or other material rewards, more details see [here](http://rocketmq.apache.org/docs/how-to-contribute/). ---------- ## License [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html) Copyright (C) Apache Software Foundation ---------- ## Export Control Notice This distribution includes cryptographic software. The country in which you currently reside may have restrictions on the import, possession, use, and/or re-export to another country, of encryption software. BEFORE using any encryption software, please check your country's laws, regulations and policies concerning the import, possession, or use, and re-export of encryption software, to see if this is permitted. See for more information. The U.S. Government Department of Commerce, Bureau of Industry and Security (BIS), has classified this software as Export Commodity Control Number (ECCN) 5D002.C.1, which includes information security software using or performing cryptographic functions with asymmetric algorithms. The form and manner of this Apache Software Foundation distribution makes it eligible for export under the License Exception ENC Technology Software Unrestricted (TSU) exception (see the BIS Export Administration Regulations, Section 740.13) for both object code and source code. The following provides more details on the included cryptographic software: This software uses Apache Commons Crypto (https://commons.apache.org/proper/commons-crypto/) to support authentication, and encryption and decryption of data sent across the network between services. IntelliJ IDEA verison: 4.8.0 https://juejin.cn/column/7188043825917460535 [RocketMQ源码-搭建源码调试环境](https://juejin.cn/post/7188044776577433661) 从org.apache.rocketmq.namesrv.NamesrvStartup.main()开始看 [RocketMQ源码2-NameServer架构设计及启动流程](https://juejin.cn/post/7194784992797392953) [RocketMQ源码3-NameServer 消息处理](https://juejin.cn/post/7208484366954774587) 从org.apache.rocketmq.example.simple.Producer.main()开始看 org.apache.rocketmq.example.openmessaging.SimpleProducer.main() [RocketMQ源码4-producer 启动流程(获取topic路由信息)](https://juejin.cn/post/7209510210422980667) [RocketMQ源码5-producer 同步发送和单向发送](https://juejin.cn/post/7210412098812051515) [RocketMQ源码6-producer 容错机制](https://juejin.cn/post/7211072055780458533) 从org.apache.rocketmq.example.simple.AsyncProducer.main()开始看 [RocketMQ源码7-producer 异步发送(容错机制)](https://juejin.cn/post/7211868417054195772) 从 org.apache.rocketmq.store.MappedFileQueue org.apache.rocketmq.store.MappedFile 开始看 [RocketMQ源码8-broker存储文件组织和内存映射](https://juejin.cn/post/7212563816453341245) 从 org.apache.rocketmq.broker.BrokerStartup.main() 开始看 [RocketMQ源码9- broker 启动流程](https://juejin.cn/post/7213285858252718139) 从 org.apache.rocketmq.broker.BrokerController.start()的this.remotingServer.start()开始看 [RocketMQ源码10-broker 消息接收流程(写入commitLog)](https://juejin.cn/post/7214036479819022373) 从 org.apache.rocketmq.broker.BrokerController.start()的this.messageStore.start()开始看 [RocketMQ源码11-broker 消息分发流程(ConsumeQueue和BuildIndex)](https://juejin.cn/post/7214512376266326075) [RocketMQ源码12-broker 消息投递流程(处理PULL_MESSAGE请求)](https://juejin.cn/post/7215518166264856633) 啥都没看懂 从 org.apache.rocketmq.store.CommitLog.asyncPutMessage() 开始看 [RocketMQ源码13- broker 文件刷盘机制](https://juejin.cn/post/7216255521371373629) 从 org.apache.rocketmq.store.DefaultMessageStore.start() 的 this.addScheduleTask(); 开始看 [RocketMQ源码14- broker文件清理](https://juejin.cn/post/7216845797143429178) 从 org.apache.rocketmq.example.quickstart.Consumer.main() 开始看 [RocketMQ源码15- consumer启动流程](https://juejin.cn/post/7218208891707277349) 从 org.apache.rocketmq.client.impl.factory.MQClientInstance() 的 this.pullMessageService = new PullMessageService(this); 开始看 [RocketMQ源码16-consumer消费流程](https://juejin.cn/post/7219137689459294268) 真难呀, 太难了 从 org.apache.rocketmq.client.impl.consumer.DefaultMQPullConsumerImpl.start() 开始看 立即重平衡: org.apache.rocketmq.client.impl.factory.MQClientInstance#rebalanceImmediately [RocketMQ源码17-consumer 负载均衡(重平衡)](https://juejin.cn/post/7220380791510040635) 很碎 从 org.apache.rocketmq.broker.BrokerController.initialize()的BrokerController.this.consumerOffsetManager.persist()开始看 org.apache.rocketmq.client.impl.consumer.RebalanceImpl.updateProcessQueueTableInRebalance [RocketMQ源码18- consumer 提交消费偏移量](https://juejin.cn/post/7221378393832882237) 从 org.apache.rocketmq.store.DefaultMessageStore.DefaultMessageStore() 和 start() 开始看 [RocketMQ源码19- 主从同步实现原理(HA)](https://juejin.cn/post/7222305855979225145) 从 org.apache.rocketmq.client.impl.consumer.PullAPIWrapper.pullKernelImpl() 开始看 [RocketMQ源码20- 主从模式下消费进度管理](https://juejin.cn/post/7223315092859207735) org.apache.rocketmq.example.ordermessage.Producer.main() org.apache.rocketmq.example.ordermessage.Consumer.main() [RocketMQ源码21-顺序消费实现原理](https://juejin.cn/post/7224433996138364989) org.apache.rocketmq.store.CommitLog.asyncPutMessage() org.apache.rocketmq.store.schedule.ScheduleMessageService.start() [RocketMQ源码22-延迟消息实现原理](https://juejin.cn/post/7225161813703376951) org.apache.rocketmq.example.transaction.TransactionProducer.main() org.apache.rocketmq.example.transaction.TransactionListenerImpl.executeLocalTransaction() [RocketMQ源码23-事务消息原理](https://juejin.cn/post/7229144055832739896)