
Assessing Your Options for Real-Time Message Buses

(metamorworks/Shutterstock)
Organizations today are required to process ever-bigger amounts of data in smaller and smaller windows of time. Those two factors are encouraging a movement away from processing architectures based on traditional databases and an approach based on real-time processing on streams of data. Message buses form the foundation for stream processing systems, and therefore are a critical component for organizations that want to develop stream processing applications.
In an ideal world, organizations would be able to land a piece of data before they need it to make a decision. But increasingly, that database-centric approach is viewed as a luxury. Whether the use case is fraud detection, risk management, network monitoring, or network monitoring, organizations increasingly cannot afford to wait around for data to land on traditional architectures to deliver the answers. They need the answers now.
This time-crunch is driving the industry to make sizable investments in building real-time processing systems that can both move and process data much quicker than traditional database-oriented systems.
There are two main components to real-time systems: the underlying message bus and a stream processing system that sits atop it. Let’s handle the underlying message busses first. The list starts out with the big dog in the space: Apache Kafka.
Apache Kafka
Apache Kafka is a distributed open source messaging bus that was written in Java and Scala. The software implements a publish and subscribe messaging system that’s capable of moving large amounts of event data from sources to sinks, in a high-throughput manner with minimal latency and strong consistency guarantees. The software relies on Apache Zookeeper for management of the underlying cluster.
Kafka is based on the concept of producers and consumers. Event data originating from producers is stored timestamped partitions that are housed within Kafka topics. Meanwhile, consumer processes can read the data stored in Kafka partitions. Kafka automatically replicates partitions across multiple brokers (or nodes in the cluster), which allows Kafka to scale its message streaming service in a fault-tolerant manner.
Kafka uses a pull-based model that’s based on consumers pulling data out of Kafka partitions. Kafka stores a complete history of event data within a given amount of time, which allows consumers to “rewind” history or to read the history from the beginning. This provides Kafka’s basis for streaming applications.
Four main APIs are included with the open source project. Two of those, producer and consumer, deliver the core functionality described above. Meanwhile, the Streams API allows an application to read streams of data from topics in the Kafka cluster (in an exactly once fashion, delivering support for transactions), while the Connect API allows a developer to build connectors that continually pull or push data into or out of Kafka.
Kafka was originally developed at LinkedIn to handle the high volume of event data, and was subsequently donated to the Apache Software Foundation in 2011. In 2014, Kafka creators Jay Kreps, Neha Narkhede, and Jun Rao founded Confluent, which offers a commercial version of Kafka that includes enterprise functions and cloud hosting.
In recent years, Kafka has become a very popular open source project, with thousands of companies building Kafka clusters on-premise or in the cloud. While organizations can build their own real-time streaming applications atop Kafka using the Streams API, many choose to couple their Kafka clusters with dedicated stream processing frameworks, such as Apache Flink, Apache Storm, or Apache Spark Streaming.
Apache Pulsar
Apache Pulsar is an open-source distributed pub-sub messaging system originally created at Yahoo that could pose a challenge to Kafka’s hegemony in the message bus layer.
Like Kafka, Pulsar uses the concept of topics and subscriptions to create order from large amounts of streaming data in a scalable and low-latency manner. In addition to publish and subscribe, Pulsar can support point-to-point message queuing from a single API. Like Kafka, the project relies on Zookeeper for storage, and it also utilizes Apache BookKeeper for ordering guarantees.
The creators of Pulsar say they developed it to address several shortcomings of existing open source messaging systems. It has been running in production at Yahoo since 2014 and was open sourced in 2016. Pulsar is backed by a commercial open source outfit called Streamlio, which employs some of Pulsar’s original creators and sells a commercial product that combines Pulsar with Apache Heron, a stream processing engine platform developed at Twitter.
Pulsar’s strengths, according to Streamlio founders, include multi-tenancy, geo-replication, and strong durability guarantees, high message throughput, as well as a single API for both queuing and publish-subscribe messaging. Scaling a Pulsar cluster is as easy as adding additional nodes, which Streamlio says gives it an advantage over other messaging buses.
RabbitMQ
RabbitMQ is a distributed, open source message bus that can be used to implement various data brokering schemes, including point to point, request/reply, and pub-sub communications. The software was written in Erlang, but today it features client libraries in a variety of languages, making it a more open alternative to message distribution and integration than Java Messaging Service (JMS).
Distributed under the Mozilla Public License, RabbitMQ originally implemented the Advanced Message Queuing Protocol (AMQP) but has since been extended with a plug-in architecture, and it now supports a variety of protocols including Streaming Text Oriented Messaging Protocol (STOMP), Message Queuing Telemetry Transport (MQTT), and others.
RabbitMQ can be deployed on clusters and is often used to offload work from busy Web servers, for workload balancing. Many consider its core strength to be reliable message delivery to large numbers of recipients. With more than 35,000 real-world deployments, it’s been battle-tested in the enterprise. RabbitMQ also benefits a large number of libraries that can extend the messaging software, including for complex messaging schemes.
The software was originally developed by Rabbit Technologies Ltd., which was acquired by a division of VMware in 2010. RabbitMQ became part of Pivotal Software in 2013, and today the company offers a hosted version of RabbitMQ on its Pivotal Cloud Foundry.
Apache ActiveMQ
Apache ActiveMQ is a distributed, open source messaging bus that’s written in Java and fully supports JMS. The software was originally developed at LogicBlaze as an open alternative to proprietary messaging buses, such as WebSphere MQ and TIBCO Messaging, and has been backed by the Apache Software Foundation since 2007.
In addition to being an open implementation of JMS, ActiveMQ also supports other protocols, including STOMP, MQTT, AMQP, REST, and WebSockets. The software scales horizontally, and support several modes for high availability, including use of ZooKeeper.
ActiveMQ is distributed the Apache 2.0 License. It forms the basis for Amazon Web Services‘ message queue service, Amazon MQ.
TIBCO Messaging
TIBCO is one of the original purveyors of high-speed message buses for enterprise customers. In fact, it’s right there in the name: The Information Bus COmpany (TIBCO).
Thousands of customers continue to use TIBCO Messaging, which provides a scalable platform for distributing high volume of messages among a variety of sources and sinks in a low-latency manner. The company’s core Enterprise Message Service is built around the JMS 1.1 and 2.0 standards.
TIBCO today extends its flagship Messaging platform with several other versions, including one based on Apache Kafka. It also offers the Eclipse Mosquitto Distribution of Messaging, which supports the MQTT protocol.
There are many other message buses out there, but these arguably are the most popular. In a future post, we’ll investigate stream processing frameworks that can sit atop these message buses.
January 15, 2021
- Social Media Manipulation by Political Actors an Industrial Scale Problem, Says Oxford Report
- Fleet of Robots Successfully Tracks, Monitors Marine Microbes
- Quantzig’s Redefined Manufacturing Analytics Portfolio Drives Operational Excellence at Times of Uncertainty
- RAIDIX ERA Delivers Enhanced Performance for Kx Streaming Analytics Platform
- Incorta Partners with CData Software to Expand Data Connectivity
- 6 New Projects Selected for European Commission’s AI-on-demand Platform, AI4EU
- Fractal Acquires Enterprise AI Provider Zerogons to Strengthen its Cloud AI Business
January 14, 2021
- O’Reilly Announces 2021 Superstream Series Lineup and Dates
- Clean Data Key to Maximizing 5G’s Potential to Augment Marketing
- Cal Poly Team Working on Cross-disciplinary Data Science and Analytics Effort
- Alteryx Partners with Snowflake to Automate Analytics and Data Science in the Cloud
- Théa Chooses OmniSci to Capture, Analyze and Visualize Automotive Data at Scale
- GridGain Announces Version 8.8, the Latest Release of In-Memory Computing Platform
- Tweaking AI Software to Function Like a Human Brain Improves Computer’s Learning Ability
- Couchbase Cloud Now Available on Microsoft Azure
- InfluxData Closes 2020 with Exponential Cloud Growth, Expanding User Base, and New Customers
- Snowflake Data Marketplace Expands Total Providers Over 300%
- CData Software Launches Native Connectors for AWS Glue in AWS Marketplace
- ElectrifAi Announces Expansion of Machine Learning Model Offerings for Amazon SageMaker
- Broad Institute and Verily Partner with Microsoft on the Next Generation of the Terra Platform for Health and Life Science Research
Most Read Features
- 2021 Predictions: Data Science
- Dremio Officially a ‘Unicorn’ As it Reaches $1B Valuation
- Johns Hopkins Launches COVID-19 Mortality Calculator, Aims to Inform Vaccine Prioritization
- Big Data File Formats Demystified
- Peering Into the Crystal Ball of Advanced Analytics
- H2O Wave: A New UI for AI
- 2020: A Big Data Year in Review
- Is Python Strangling R to Death?
- Why Data Science Is Still a Top Job
- Predictive Maintenance Drives Big Gains in Real World
- More Features…
Most Read News In Brief
- AWS Launches Managed Services for Grafana, Prometheus
- A Virtual Ride Along with John Deere at CES
- Cloudera CEO: Enterprise Data Cloud Vision Nearly Complete
- War Unfolding for Control of Elasticsearch
- Data Prep Still Dominates Data Scientists’ Time, Survey Finds
- Verizon Expands Deal with AWS for 5G Edge Platform
- Beware of 2020 Data, Alation Says
- ACLU Objects to Expansion of Facial Recognition by CBP
- The Rise and Fall of Qlik
- Databricks Plotting IPO in 2021, Bloomberg Reports
- More News In Brief…
Most Read This Just In
- Ascend.io Unveils Flex-Code Data Connectors for Rapid Data Ingestion
- PrestoSQL Rebranding as Trino
- PostHog Raises $12 Million in Funding Led by GV and Y Combinator
- Accern Upgrades No-Code AI Platform with Advanced Features for Financial Services
- DL Framework ‘SmallTrain 0.2.0’ Released for Professional and Commercial Use
- Monte Carlo Releases Data Observability Platform
- Veritone and Alteryx Partner to Power the Alteryx Analytic Process Automation Platform with New AI Capabilities
- BlackSky Awarded Govt Contract to Develop AI Platform for Global Construction Monitoring
- Fujitsu Signs $8M Contract with Palantir, Becomes First Distributor of Foundry Modules in Japan
- New Data-driven Global Climate Model Provides Projections for Urban Environments
- More This Just In…
Sponsored Partner Content
-
Making the Business Case for a Data Catalog
-
Hear from William McKnight on everything you need to know to modernize your enterprise data warehouse.
-
Free Whitepaper: The Race for a Unified Analytics Warehouse
-
Move beyond extracts – Instantly analyze all your data with Smart OLAP™
-
CDATA | Universal Connectivity to SaaS/Cloud, NoSQL, & Big Data
Sponsored Whitepapers
Contributors
Featured Events
-
LEAP
February 1 - February 3Saudi Arabia -
AI & Big Data Expo Global 2021
March 17 - March 18Kensington London United Kingdom