作用
NameServer作為rocketmq中重要的組件其主要有如下功能:
在官網(wǎng)概念介紹如下 https://rocketmq.incubator.apache.org/docs/core-concept/
Name server serves as the routing information provider. Producer/Consumer clients look up topics to find the corresponding broker list.
也就是說
- 每個(gè)broker啟動(dòng)的時(shí)候會(huì)向namesrv注冊(cè)
- Producer發(fā)送消息的時(shí)候根據(jù)topic獲取路由到broker的信息
- Consumer根據(jù)topic到namesrv獲取topic的路由到broker的信息
概述
后續(xù)
后續(xù)代碼講解針對(duì)上面的UML圖來
不講解RemotingServer 以及 NettyServerConfig模塊(屬于remoting模塊)
refer
http://blog.csdn.net/mr253727942/article/details/52637126 流程圖
http://blog.csdn.net/a417930422/article/details/52585414 作用
https://rocketmq.incubator.apache.org/docs/core-concept/ 概念
http://bboyjing.github.io/2017/04/21/RocketMQ%E6%BA%90%E7%A0%81%E5%88%86%E6%9E%90%E4%B9%8B%E3%80%90rocketmq-namesrv%E3%80%91/ 各類簡(jiǎn)介
https://github.com/fdx321/fdx321.github.io/issues/2 整體結(jié)構(gòu)