You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apache RocketMQ is a distributed messaging and streaming platform with low latency, high performance and reliability, trillion-level capacity and flexible scalability.
前言
最近正好在研究RocketMQ,因此打算写一些相关的博文,这是第一篇关于Producer的博客
Producer的启动流程
一个简单的Demo
内部如何工作?
接下来我们就尝试搞清楚上面那坨代码具体都干了哪些东西:
可以看到
DefaultMQProducer
只是一个门面类,具体的实现都是由DefaultMQProducerImpl
去做的:这段代码非常的清晰,其中有一行比较核心的,大部分初始化的工作都是这里完成的
mQClientFactory.start();
,因此我们看看这里具体都是啥:最后来一张流程图:
The text was updated successfully, but these errors were encountered: