In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the overview and characteristics of physical deployment structure and logical deployment structure in rocketmq documents. The content is very detailed. Interested friends can use it for reference. I hope it will be helpful to you.
RocketMQ Overview 1, what is RocketMQ 1) is a queue model of message middleware, with high performance, high reliability, high real-time, distributed characteristics. 2) Producer, Consumer and queues can all be distributed. 3) Producer sends messages to some queues in turn, and the queues are grouped into Topic,Consumer. If broadcast consumption is done, a consumer instance consumes all queues corresponding to this Topic, and if cluster consumption is done, On average, multiple Consumer instances consume the queue set corresponding to the topic. 4) it can guarantee a strict message order. 5) provide a rich message pull mode. 6) efficient subscriber horizontal scalability. 7) Real-time message subscription mechanism 8) 100 million message stacking capacity 9) fewer dependencies
2. Rocketmq physical deployment structure
Characteristics of RocketMQ network deployment 1) Name Server is an almost stateless node, can be deployed in clusters, and there is no information synchronization between nodes. 2) Broker deployment is relatively complex, Broker is divided into Master and Slave, a Master can correspond to multiple Slave, but a Slave can only correspond to one Master,Master and the corresponding relationship between Slave is defined by formulating the same BrokerName, different BrokerID is defined, BrokerId is 0 for Master, non-0 for Slave. Master can also deploy multiple. Each Broker establishes a persistent connection with all nodes in the Name Server cluster, registers Topic information to all Name Server3 regularly) Producer establishes a persistent connection with one of the nodes in the Name Server cluster (randomly selected), periodically takes Topic routing information from the Name Server, establishes a long connection to the Master that provides Topic services, and periodically sends a heartbeat to the Master. Producer is completely stateless and can be deployed in a cluster. 4) Consumer establishes a persistent connection with one of the nodes in the Name Server cluster (randomly selected), periodically takes Topic routing information from Name Server, establishes a persistent connection to Master and Slave that provide Topic services, and regularly sends heartbeats to Master and Slave. Consumer can subscribe to messages from either Master or Slave, and the subscription rules are determined by the Broker configuration. 3. RocketMQ logical deployment structure
1) Producer Group is used to represent a messaging application. A Producer Group contains multiple Producer instances, which can be multiple machines, processes of a machine, or multiple Producer objects of a process. A Producer Group can send multiple Topic messages. The functions of Producer Group are as follows: a) identify a type of Producerb) you can query the number of Producer instances under this messaging application through the operation and maintenance tool c) when sending a distributed transaction message, if the Producer goes down unexpectedly, Broker will actively call back any machine in the Producer Group to confirm the transaction status. 2) Consumer Group is used to represent a consumer messaging application. A Consumer Group contains multiple Consumer instances, which can be multiple machines. It can also be multiple processes, or multiple Consumer objects for a process. A Consumer Group consumes messages equally, and if set to broadcast, then each instance under this Consumer Group consumes full data. This is the overview and characteristics of the physical deployment structure and logical deployment structure in the rocketmq document. I hope the above content can be helpful to you and learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.