NameServer模块概述

2017-09-07  本文已影响278人  赤子心_d709

作用

NameServer作为rocketmq中重要的组件其主要有如下功能:
在官网概念介绍如下 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.

也就是说

  1. 每个broker启动的时候会向namesrv注册
  2. Producer发送消息的时候根据topic获取路由到broker的信息
  3. Consumer根据topic到namesrv获取topic的路由到broker的信息

概述

模块类图 启动流程 整体结构

后续

后续代码讲解针对上面的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/ 各类简介
https://github.com/fdx321/fdx321.github.io/issues/2 整体结构

上一篇下一篇

猜你喜欢

热点阅读