Apache RocketMQ

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
Apache RocketMQ
Rmq-logo.png
Developer(s)Apache Software Foundation
Initial release2012; 7 years ago (2012)
Stable release
4.2.0 / April 27, 2018; 12 months ago (2018-04-27)
Repository Edit this at Wikidata
Written inJava
Operating systemCross-platform
TypeStream processing, Message broker
LicenseApache License 2.0
Websiterocketmq.apache.org

RocketMQ[1] is a distributed messaging and streaming platform with low latency, high performance and reliability, trillion-level capacity and flexible scalability. It is the third generation distributed messaging middleware open sourced by Alibaba in 2012. On November 21, 2016, Alibaba donated RocketMQ to the Apache Software Foundation. Next year, on February 20, the Apache Software Foundation announced Apache RocketMQ as a Top-Level Project.

History[edit]

The development of RocketMQ can be divided into three stages.[2]

The first generation uses the push mode in data transportation, and relational database in data storage. It shows low latency in message delivery and meets the command of a typical E-commerce platform[3] with distributed transactions.

The second generation uses the pull mode in data transportation, and file system in data storage. It paid more attention to stability and reliability, and shows a comparable performance to the first generation in response time and Kafka on log collection.

The third generation combines the Pull mode with some Push operations. It inherits the advantages of the first and second generation, and shows high performance in concurrency and massive amounts of data scenarios.

Features[edit]

Much comparison have been made between all kinds of messaging solutions, and it is widely known that when the number of topics increases dramatically, the throughput of RocketMQ dropped much less than Kafka.[4] Because the characteristics of high performance, high reliability and high real time ability, more and more efforts have been made to the combination of RocketMQ and other protocol component in all kinds of messaging scenarios such as MQTT.[5]

Client SDK Protocol and Specification Ordered Message Scheduled Message Batched Message BroadCast Message Message Filter Server Triggered Redelivery
Java, C/C++, Python, Go, Nodejs Pull model, support TCP, JMS, OpenMessaging Ensure strict ordering of messages,and can scale out gracefully Supported Supported, with sync mode to avoid message loss Supported Supported, property filter expressions based on SQL92 Supported
Message Storage Message Retroactive Message Priority High Availability and Failover Message Track Configuration
High performance and low latency file storage Supported timestamp and offset two indicates Not Supported Supported, Master-Slave model, without another kit Supported Work out of box,user only need to pay attention to a few configurations

Architecture[edit]

RocketMQ consists of four parts: name servers, brokers, producers and consumers. Each of them can be horizontally extended without a single point of Failure. As shown in image left.

NameServer Cluster[edit]

The lightweight component for service discovery and they can be used to read and write routing information. Each one records global information, and supports fast storage expansion.

Broker Cluster[edit]

They use lightweight TOPIC and QUEUE mechanisms to manage data storage. To realize fault tolerance, 2 copies or 3 copies of data are provided. And Client can get message in Push and Pull model. In addition, disaster recovery and rich metrics statistics are also supported.

Producer Cluster[edit]

Producers can be distributed deployed, and messages from producers to brokers can be balanced through multi-path. In addition, fast failure and low latency are supported.

Consumer Cluster[edit]

Consumers can also be distributed deployed in the push and pull model, and they can subscribe message real-time, consume message in the unit of cluster. Message broadcasting is also supported.

Applications[edit]

There are at least five aspects Apache RocketMQ could relate to:

  • The integration of heterogeneous systems;
  • Decoupling between applications;
  • Backbone in the event-driven mechanism and complex event architecture model;
  • Data replication channels;
  • Integration with flow calculation engine;
  • Stream data access.

Community Maintenance[edit]

The RocketMQ team have done much to active the community. Meetups, Workshops, ApacheCon and Code Marathon are regular held in BeiJing, ShenZhen, HangZhou to attract new contributors and committers. The OpenMessaging benchmarking suites are currently available for the RocketMQ and it makes RocketMQ keep the pace with the global standard for distributed messaging.[6] As for version management, a series of standardized software development processes are adopted. The latest version is 4.2.0, and 4.3.0 is on the way. More information can be reached in here.

Awards[edit]

2016 China’s most popular open source software award

2017 China’s most popular open source software award

12th CJK(China-Japan-South Korea) open source software outstanding technology award

2018 China’s most popular open source software award

See also[edit]

References[edit]

  1. ^ "apache/rocketmq". GitHub. Retrieved 2018-05-25.
  2. ^ "From Alibaba to Apache: RocketMQ's Past, Present, and Future". InfoQ. Retrieved 2018-06-26.
  3. ^ "Toward a General Distributed Messaging Framework for Online Transaction Processing Applications - IEEE Journals & Magazine". ieeexplore.ieee.org. Retrieved 2018-06-26.
  4. ^ Cloud, Alibaba (2018-01-04). "Kafka vs. RocketMQ- Multiple Topic Stress Test Results". Medium. Retrieved 2018-07-08.
  5. ^ "A MQTT Protocol Message Push Server Based on RocketMQ - IEEE Conference Publication". ieeexplore.ieee.org. Retrieved 2018-06-26.
  6. ^ "The OpenMessaging Benchmark Framework". openmessaging.cloud. Retrieved 2018-07-08.

External links[edit]