---
title: What is a Message Broker?
url: https://www.vmware.com/topics/message-brokers
description: Learn how a message broker enables secure, automated, and asynchronous communication in distributed and cloud environments.
---

# What is a Message Broker?

Modern computing relies on a distributed architecture in which separate software components that are often in different environments coordinate with each other by exchanging data in the form of messages. Managing this communication, whether it is messaging or [event streaming](https://www.vmware.com/topics/event-streaming), between the application components of various [microservices](https://www.vmware.com/topics/microservices), serverless, and other [cloud native](https://www.vmware.com/topics/cloud-native) application architectures is essential and comprises a programming challenge.

A message broker is an intermediary software that acts as a digital post office to help different applications in different environments to easily talk to each other by taking a message from one system and making sure that it gets delivered to its intended destination. Message brokers accomplish this by providing a common communication mechanism that scales with application needs, handling translation, routing, persistence, and delivery, streamlining communications while reducing the burden on software developers to handle these capabilities in application code.

Message brokers:

- Simplify communication between microservices, while providing security, automated management, and high performance.
- Help integrate disparate applications and services across a wide variety of languages and platforms.
- Provide asynchronous messaging, which allows producers and consumers to send and receive messages independently and at different times without blocking.

An enterprise-grade message broker helps ensure fast reliable communication between servers, applications and devices with secure, automated, and asynchronous messaging for passing events, commands, data, and responses among producing and consuming applications or services across distributed, often multi-cloud environments.

## Message Broker architecture

A message broker provides the necessary plumbing to facilitate the exchange of messages (discrete, structured data) between the producer or publisher that sends the message and the consumer or subscriber that receives the message. A message broker accepts and if necessary, translates messages sent by a producer, then organizes and holds messages in a message queue until received by the consumer or subscriber application(s).

By serving as a secure "digital post office," a message broker handles the complex logistics of delivery so that individual applications do not have to. A well-designed message broker system typically operates on an event-driven architecture paradigm that flows through three main stages:

- **Event Generation:** A producer (or publisher) application experiences a change or generates an event, prompting it to send a message to the broker.
- **Message channeling/routing:** The broker receives the message and categorizes it based on predefined topics or queues.
- **Event consumption:** The broker notifies and delivers the message to the appropriate consumer or subscriber application(s).

![image3.png](https://www.vmware.com/media/blt8c9a8aaca0ffd4ac/bltcb7c036f77129979/6a2c3495da7c0d1805e20930/image3.png)

Most message brokers (like [VMware Tanzu RabbitMQ](https://www.vmware.com/products/app-platform/tanzu-data-intelligence/rabbitmq) or Apache ActiveMQ) utilize a server-based model. This centralized architecture provides centralized processing, distribution, and data persistence.

## Message Broker comparisons

### Message Broker vs. Message Queue

Because the designation “MQ,” (message queue) appears in the name of some popular message brokers such as RabbitMQ and ActiveMQ, many people conflate message brokers with message queues, but they are not the same thing. Message queues are actually an important component of message brokers.

Message queues are data structures that provide reliable temporary storage for messages until they are read. Once a message is received, a message broker typically maintains the message in a message queue until a consumer/subscriber can retrieve it. They store messages in the same order in which they were sent, so they can be processed in sequence. Producers and consumers can share the same queue, and messages can be routed to one or many message queues. Message queues help ensure information doesn’t get lost or destroyed due to incompatible systems, network latency, or application failure.

### Message Broker vs. an event streaming platform

- While many use message broker and [event streaming](https://tanzu.vmware.com/event-streaming) somewhat interchangeably, they are not exactly the same. The confusion arises because of overlap in the use cases for the two technologies.
- A message broker stores a message in a queue until it is consumed and then deletes the message. Message brokers offer flexible routing and reliability. Event streaming platforms append events to the end of a log and don’t delete events as they are consumed.
- Streaming facilitates raw throughput. Consumers can start reading the stream at any point and see the entire history. An “event” could be the same as a message, but with streaming applications, it is often the stream of events that is of interest. Multiple events are often processed together.
- For example, a low-fidelity temperature sensor might report the temperature once per second. Rather than use the temperature reported in a single event, it may be more accurate to average the last ten temperature readings and use the average as a measure of the temperature. Similarly, a stock trading application might analyze changes in a stock price over time, processing a series of events (multiple ticks in the price) in multiple ways before taking an action or generating a notification.
- The blog [RabbitMQ vs Kafka: How to Choose an Event-Streaming Broker](https://tanzu.vmware.com/content/blog/rabbitmq-event-streaming-broker) sheds more light on the differences between a message broker and event streaming.

### Message Broker vs. Message Bus

A message bus, also often referred to as an enterprise service bus (ESB), is a type of middleware built on a centralized software platform that enables application-to-application communication, primarily used in traditional Service Oriented Architecture (SOA). ESBs transform message payloads using automated processes and formalize data formats. While ESBs remain in wide use, they are notoriously complex, expensive to maintain, and difficult to scale. As organizations migrate to modern microservices architectures and cloud-native frameworks, ESBs are increasingly being replaced by lightweight messaging and open-source brokers.

## Common Message Broker Models

Message brokers models are defined by how the messages are delivered. The two primary communication models are Point-to-Point Messaging and Publish-Subscribe Messaging. In describing the two models, the following terms are typically used, depending on the model being deployed:

- **Producer or publisher:** The message sender.
- **Consumer or subscriber:** The message recipient.
- **Message queue or topic:** Where a message is routed.

## Point-to-point messaging model

A point-to-point messaging model utilizes a one-to-one relationship between a sender and a receiver. A producer sends a message to a specific queue, where it is temporarily stored until it is retrieved and acknowledged by a single consumer. Messages could include data to be stored, a command to be carried out, or any other information that needs to be shared between the producer and the consumer. This model is ideal for tasks that require strict single execution, such as processing payroll or financial transactions.

![image5.png](https://www.vmware.com/media/blt8c9a8aaca0ffd4ac/blt45bf9f49e80cb420/6a2c71054b0e8e63ca9bfbe8/image5.png)

## Publish-subscribe messaging model

Often referred to as "pub/sub," this is a broadcast-style model that utilizes a one-to-many or many-to-many relationship and is used when a message producer needs to send the same message to many recipients simultaneously. Instead of sending a message directly to a specific receiver's queue, the producer sends the message to a designated "topic". The message broker publishes the message to that topic, where it is organized, cached, processed and delivered to the consumers that have registered their interest to that topic. Multiple consumers can register their interest in a topic, and the message broker will automatically distribute a copy of every message published there to all of its subscribers.

Publish-subscribe provides a flexible, interest-driven way of communicating between multiple microservices and applications, and is ideal when multiple different systems need the same information simultaneously, such as broadcasting flight delay updates to baggage handlers, flight crews, and public display boards all at once.

![image2.png](https://www.vmware.com/media/blt8c9a8aaca0ffd4ac/blt2afdb870415f2ce2/6a2c6f971c149a2341a45f88/image2.png)

## When to implement a Message Broker

Many [microservices applications use APIs](https://blogs.vmware.com/tanzu/microservices-vs-apis/) to communicate directly with each other, so you might wonder why a message broker is needed. One of the main reasons to choose a message broker is scale. Once application components begin exchanging thousands of messages, the performance and resiliency of a message broker begin to justify the complexity that comes with the extra software.

There are a number of common use cases that lend themselves to message broker use:

- **Microservices:** As the number of microservices that make up an application increases, a message broker can rationalize communications between services. For example, suppose a service needs to send the identical message to ten other services. Rather than make 10 API calls, with a message broker you simply send one message to the broker.
- **Long-running tasks:** Sometimes a message triggers a long-running task. For instance, when a video is uploaded, a message may be sent to trigger a series of tasks such as transcoding, compression, distribution, etc. These tasks may take many hours to run in the background.
- **Mobile apps:** Mobile devices and apps may not always be running or reachable. A message broker can ensure that messages (notifications) are available and can be received in order when the mobile device or application regains service.
- **Transactions:** With transactional systems, you often need to ensure that a message is only processed once and not duplicated. Because message brokers delete messages after they are consumed, they can be used to ensure this happens.

## Message Broker considerations

Message brokers facilitate the exchange of messages between applications deployed in different environments. The message broker you choose ultimately depends on your specific use case and operational needs. When evaluating different broker and streaming platforms, you should look for an architecture that can support your specific technical requirements.

Key capabilities to look for include:

- **Massive concurrency:** The ability to manage a large number of concurrent device connections (millions).
- **Advanced event streaming:** In addition to queue-based messaging, the ability to handle event streams, and handle continuous, replayable, append-only logs natively.
- **High performance:** Providing ultra-low latency message routing resulting in the ability to provide an optimal architecture for handling dynamic, real-time metrics and massive sensor workloads without sacrificing performance.
- **Efficiency:** The ability to compress payload data across nodes, reducing bandwidth and lowering disk I/O costs.

There are many open source and cloud-based message brokers available in the market:

- [RabbitMQ](https://tanzu.vmware.com/content/rabbitmq) is an open source distributed message broker that delivers flexible routing and command and response between application.
- [VMware Tanzu RabbitMQ](https://www.vmware.com/products/app-platform/tanzu-data-intelligence/rabbitmq) is an enterprise grade message broker based on open source RabbitMQ. It facilitates the efficient delivery of messages in complex routing scenarios and has recently added event-streaming capabilities that model a Kafka-like append-only log on top of a traditional RabbitMQ message queue.
- [Apache ActiveMQ](https://activemq.apache.org/) is an open source message broker that facilitates communication between microservices, and supports protocols across a range of languages and platforms.
- [Apache Kafka](https://spring.io/projects/spring-kafka) is a distributed event streaming platform rather than a message broker. However, many use Kafka to satisfy message broker use cases.
- [Apache Pulsar](https://pulsar.apache.org/) provides cloud native, multi-tenant, high-performance messaging and queuing for microservices and serverless functions.

## Recommended for You

## How VMware products can help

[VMware Tanzu RabbitMQ](https://www.vmware.com/products/app-platform/tanzu-data-intelligence/rabbitmq) is an enterprise grade message broker that helps coordinate services running on multiple platforms in today’s increasingly distributed environments. Based on the popular open-source RabbitMQ platform, it provides traditional messaging capabilities alongside modern event-streaming functionalities. The blog [RabbitMQ vs Kafka: How to Choose an Event-Streaming Broker](https://blogs.vmware.com/tanzu/rabbitmq-event-streaming-broker/) sheds more light on the differences between a message broker and event streaming and how VMware Tanzu RabbitMQ provides the best of both worlds.

By leveraging VMware RabbitMQ, organizations can simplify communication between microservices, automate management, and ensure fast, secure, and reliable asynchronous data exchange across complex, multi-cloud environments.

## Recommended for You

- [Agentic AI](https://www.vmware.com/topics/agentic-ai)
- [Data Services](https://www.vmware.com/topics/data-services)
- [Application Modernization](https://www.vmware.com/topics/application-modernization)
- [Microservices](https://www.vmware.com/topics/microservices)

## Related Products and Solutions

- [VMware RabbitMQ](https://go-vmware.broadcom.com/contact-us)
- [VMware Tanzu Data Intelligence](https://www.vmware.com/products/app-platform/tanzu-data-intelligence)
- [VMware Tanzu for AI Agents](https://www.vmware.com/solutions/app-modernization/tanzu-ai)

## Also of Interest

- [What is Platform Engineering?](https://www.vmware.com/topics/platform-engineering)
- [VMware Tanzu Platform](https://www.vmware.com/products/app-platform/tanzu)
- [VMware Tanzu RabbitMQ](https://www.vmware.com/products/app-platform/tanzu-data-intelligence/rabbitmq)
