Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to understand RocketMQ Architecture

Shulou Source: shulou.com Published: 2022-06-01 21:54:31 10月02日 Update

This article shows you how to understand the RocketMQ architecture, the content is concise and easy to understand, can definitely brighten your eyes, through the detailed introduction of this article, I hope you can get something.

Overview

Apache RocketMQ is a distributed messaging and streaming media platform with low latency, high performance and reliability, billions of capacity and flexible scalability. It consists of four parts: Name Servers,brokers,producers and consumers. Each of them can scale horizontally without a single point of failure.

NameServer cluster

Name Servers provides lightweight service discovery and routing. Each Name Server records complete routing information, provides corresponding read and write services, and supports rapid storage expansion.

Broker cluster

Brokers implements message storage by providing lightweight TOPIC and QUEUE mechanisms. They support Push and Pull patterns, include fault tolerance mechanisms (2 or 3 copies), and provide powerful peak padding and the ability to accumulate hundreds of billions of messages in the original chronological order. In addition, broker provides disaster recovery, rich metric statistics and alarm mechanisms, which are lacking in traditional messaging systems.

Producer cluster

Producer clusters support distributed deployment. Distributed producer sends messages to Broker clusters through a variety of load balancing modes. The sending process supports fast failure and has low latency.

Consumer cluster

Consumer also supports distributed deployment of Push and Pull models. It also supports cluster consumption and message broadcasting. It provides a real-time message subscription mechanism to meet the needs of most consumers.

The above content is how to understand the RocketMQ architecture. Have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Tags: Messages clustering support mechanisms distributed architecture content skills patterns knowledge routing lightweight lightweight storage latency services consumption primitive powerful concise Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology MariaDB Microsoft Shulou Information Docker