Amazon MQ
Cloud service · AWS · Updated

Amazon MQ

In short

Amazon MQ is a managed message broker service for Apache ActiveMQ and RabbitMQ that makes it easy to set up and operate message brokers in the cloud, facilitating the integration of different software systems and components.

Cloud Services Hub →

8 key features of Amazon MQ

Amazon MQ is a managed message broker service that supports industry-standard messaging protocols such as MQTT, AMQP, and STOMP, enabling secure and scalable communication between distributed software components and microservices.

01
Managed Service

Amazon MQ is a managed messaging service for Apache ActiveMQ and RabbitMQ that makes it easy to set up and operate message brokers in the cloud. It manages the administration and maintenance tasks, allowing developers to focus on their application logic.

02
High Availability

Amazon MQ supports multi-AZ high availability through three-node RabbitMQ clusters and ActiveMQ active/standby deployments.

03
Security

Amazon MQ integrates with AWS Identity and Access Management (IAM), allowing you to control access to your message brokers. It also supports encryption at rest and in-transit to ensure that your messages are securely transferred and stored.

04
Easy Integration

With Amazon MQ, you can quickly migrate your existing applications that use message brokers by changing the endpoints of your applications to connect to Amazon MQ, simplifying the migration process with minimal code changes.

05
Monitoring and Logging

Amazon MQ is integrated with Amazon CloudWatch and AWS CloudTrail, providing detailed monitoring and logging capabilities that allow you to track and analyze messages, and audit and monitor your message brokers.

06
JMS Messaging Patterns and Transactions

Amazon MQ supports JMS point-to-point queues, publish-subscribe topics, request/reply, persistent and non-persistent messaging, JMS transactions, and distributed XA transactions.

07
Composite and Virtual Destinations

Composite destinations let producers send the same message to multiple destinations, while virtual destinations let publishers broadcast through a topic to receivers subscribing through queues.

08
RabbitMQ Resource Limit Configuration

From RabbitMQ 4 onwards, Amazon MQ supports configurable broker resource limits. Default limits are automatically applied when a broker is created, and their configuration values can be customized for the workload.

Where Amazon MQ is used

Amazon MQ is used to facilitate the seamless migration and operation of message broker services, encouraging decoupling in microservices, distributed systems, and serverless applications for reliable communication and coordination.

  1. 01
    Decoupling Microservices

    Amazon MQ is utilized to decouple microservices, enabling them to communicate asynchronously and be independently developed, deployed, and scaled. This use case focuses on enhancing system resilience and agility, making it easier to update and maintain parts of the system without impacting others.

  2. 02
    Disaster Recovery

    Amazon MQ acts as a critical component in disaster recovery strategies by ensuring messages can be replicated across different regions or availability zones. This use case provides a durable and reliable way to maintain business operations by ensuring that messaging systems can withstand regional failures.

  3. 03
    Third-party Integration

    Leveraging Amazon MQ for third-party application integration enables seamless communication and data exchange between disparate systems. This use case is particularly valuable in ecosystems where legacy systems need to interact with new cloud-based applications, facilitating smoother interoperability and data consistency.

  4. 04
    Load Balancing Workloads

    Amazon MQ is used to distribute workloads evenly across multiple consumers, ensuring no single service is overwhelmed. This use case is essential for maintaining system performance and reliability, especially during spikes in demand, by leveraging message queuing to prioritize and manage requests efficiently.

  5. 05
    Financial Transactions

    In the financial sector, Amazon MQ ensures the secure and reliable transfer of transaction data between services. This use case highlights the platform's ability to handle sensitive information, providing guaranteed delivery, transaction integrity, and the sequential processing of messages critical for financial operations.

How Amazon MQ is priced

Amazon MQ pricing is based primarily on the chosen broker instance type and the number of active mq brokers, with additional costs for data transfer, storage, and metrics data emitted by brokers.

On-Demand Broker Instances

Message broker instance usage is charged hourly and billed at one-second resolution, with rates depending on instance size and whether the deployment is single-instance, a three-node cluster, or active/standby.

Storage

Broker storage is charged according to average monthly usage in GB-months, calculated by summing hourly GB usage and dividing by the number of hours in the month.

Data Transfer

Inbound bandwidth to an AWS Region is free. Traffic forwarded between brokers across Availability Zones in the same Region costs $0.01/GB in each direction, and cross-Region outbound bandwidth follows EC2 data transfer pricing. RabbitMQ clusters have no additional intra-cluster data transfer fees.

Cross-Region Data Replication

ActiveMQ cross-Region data replication has an additional hourly charge per broker, on top of the instance and storage charges for the primary and replica brokers.

Public IPv4 Addresses

Standard public IPv4 address charges apply to addresses consumed by Amazon MQ endpoints.

RabbitMQ Private Networking

RabbitMQ private networking connects brokers across VPCs and accounts over AWS PrivateLink using VPC Lattice Resource Gateway. Amazon MQ charges $0.01 per GB processed, and VPC Lattice Resource Gateway adds $0.006 per GB processed through the gateway.

AWS Free Tier

New AWS customers signing up from July 15, 2025 receive up to $200 in Free Tier credits applicable to eligible services including Amazon MQ. The free plan lasts six months after account creation, and all credits must be used within twelve months of account creation.

Services Amazon MQ works with

Amazon EC2Amazon EC2

Amazon MQ brokers run on Amazon EC2 instances, leveraging its underlying compute resources for hosting the message brokers.

Amazon CloudWatchAmazon CloudWatch

Amazon MQ integrates with Amazon CloudWatch for monitoring, allowing you to view metrics, set alarms, and gain insights into the performance of your message brokers.

Amazon VPCAmazon VPC

Amazon MQ brokers can be hosted within an Amazon Virtual Private Cloud (VPC), giving you control over the network configuration such as subnets, security groups, and access control.

Amazon Elastic Block Store (Amazon EBS)Amazon Elastic Block Store (Amazon EBS)

Amazon MQ for ActiveMQ supports Amazon EBS as a storage option for persistent broker data. EBS-backed brokers provide low-latency storage for messaging workloads.

Amazon Elastic File System (Amazon EFS)Amazon Elastic File System (Amazon EFS)

Amazon MQ for ActiveMQ uses Amazon EFS to durably store broker data across Availability Zones. Active/standby brokers use this shared storage so the standby can take over without losing persistent messages.

Amazon EventBridgeAmazon EventBridge

Amazon MQ brokers can serve as sources for EventBridge Pipes, which polls broker queues and forwards messages to configured targets. A pipe can filter and enrich messages before delivering them to a downstream service.

AWS CloudFormationAWS CloudFormation

Amazon MQ brokers, broker configurations, and configuration associations can be provisioned through CloudFormation resource types. Templates can define broker engines, deployment modes, networking, and logging settings.

AWS CloudTrailAWS CloudTrail

Amazon MQ management API calls are recorded by CloudTrail, including broker creation, configuration changes, and deletion. These records identify who performed an action, when it occurred, and the request parameters.

AWS ConfigAWS Config

AWS Config records supported Amazon MQ broker configurations and tracks changes over time. Config rules can evaluate broker settings, such as whether public accessibility is disabled.

AWS Directory ServiceAWS Directory Service

Amazon MQ for ActiveMQ can use an LDAP directory hosted by AWS Directory Service for Microsoft Active Directory to authenticate broker users and authorize messaging operations. The directory must provide an LDAPS endpoint and certificate that meet Amazon MQ's requirements.

Alternatives to Amazon MQ in other clouds

Azure

Service Bus

Amazon MQ and Azure Service Bus are managed message brokers that let applications communicate asynchronously through queues and publish-subscribe topics. Amazon MQ runs ActiveMQ or RabbitMQ broker instances and bills for instance time and storage, while Azure Service Bus offers shared or dedicated capacity and bills for messaging operations or allocated capacity, depending on the tier.

Compare fact by fact
Amazon MQService Bus
Deployment modelActiveMQ or RabbitMQ broker instancesShared or dedicated namespace capacity
Main billing basisBroker instance time and storageOperations or capacity, by tier
Cross-region message replicationActiveMQ primary and replica brokersPremium namespace replicas
Compared Nov 2026

What is Amazon MQ

3 min read

Amazon MQ is a managed message broker service for Apache ActiveMQ and RabbitMQ that makes it easier for developers to set up and operate message brokers in the cloud. Message brokers are crucial components in many distributed systems, enabling components to communicate with each other through messages. This form of communication is essential for building scalable, loosely coupled architectures. 

Amazon MQ is designed to take care of the heavy lifting involved in managing a message broker, such as maintenance, setup, and patching, allowing developers to focus on building and optimizing their applications. Amazon MQ supports industry-standard APIs and protocols, including JMS, NMS, AMQP, STOMP, MQTT, and WebSocket, allowing it to easily integrate with existing applications. This broad support means that many applications can switch to Amazon MQ with minimal changes to their codebase, making it a convenient option for teams looking to migrate their message broker to the cloud. 

RabbitMQ private networking provides secure connectivity between brokers across VPCs and accounts without traversing the public internet.

Moreover, since Amazon MQ is compatible with popular message brokers like Apache ActiveMQ and RabbitMQ, developers can leverage their existing skills and tools with the service. Amazon MQ does not automatically scale broker resources to meet application demand. Customers must explicitly change broker instance sizes or deployment configurations when additional capacity is needed. 

Amazon MQ also offers single-instance brokers and mesh configurations using single-instance or active/standby brokers.

Amazon MQ management APIs have an account-wide rate limit of 15 and burst limit of 100 per Region, aggregated across all Amazon MQ APIs; these limits are not adjustable. They do not apply to ActiveMQ or RabbitMQ broker messaging APIs and do not throttle message sending or receiving.

Additionally, Amazon MQ is a managed service, meaning that Amazon handles the administration of your message broker, including updates and patches. This managed aspect of the service significantly reduces the operational burden on your team, allowing them to concentrate on developing new features and improving the application. Multi-AZ high availability depends on the deployment configuration: RabbitMQ supports three-node clusters, while ActiveMQ supports active/standby deployments or mesh networks of brokers. 

For cross-Region disaster recovery, Amazon MQ for ActiveMQ supports cross-Region data replication between a primary broker and a replica broker.

Furthermore, Amazon MQ is fully integrated with AWS CloudWatch, giving developers detailed monitoring capabilities for their message brokers. This integration allows teams to track metrics, set alarms, and automatically react to changes in their messaging infrastructure's performance. Security is another critical aspect of Amazon MQ. 

The non-adjustable CloudWatch destination-monitoring quotas are 1,000 ActiveMQ queues and topics and 500 RabbitMQ queues per supported Region.

The service includes features such as encryption at rest and in transit, using AWS Key Management Service (KMS) for managing encryption keys. Additionally, Amazon MQ supports AWS Identity and Access Management (IAM) for controlling access to resources, allowing for fine-grained permissions and security policies. 

In conclusion, Amazon MQ offers a reliable, scalable, and secure solution for managing message brokers in the cloud. By providing a managed service that is compatible with popular messaging protocols and APIs, Amazon MQ significantly simplifies the task of implementing and operating a messaging infrastructure. This ease of use, combined with its robust feature set, makes Amazon MQ an attractive option for developers looking to build or migrate distributed applications to the cloud.

Concepts related to Amazon MQ

Amazon MQ exam questions

Real practice exam questions on Amazon MQ, with the correct answer and its explanation. Answer them with every option in the exam simulator.

SAA-C03

A company runs a legacy warehouse application that sends work requests to JMS queues on an existing Amazon MQ for Apache ActiveMQ active/standby deployment across two Availability Zones. The application already reconnects automatically after broker failover.

During a controlled failover test, consumers are paused. Producers receive successful synchronous send responses, but some queued requests disappear after the standby broker becomes active. The missing requests were sent with NON_PERSISTENT delivery mode. Messages have no expiration, and no consumers received them during the test.

The company must ensure that successfully acknowledged work requests remain available after broker failover. Application code cannot change, but the application's external configuration supports changing JMS delivery mode and connection settings.

Which change should a solutions architect recommend?

Show answerCORRECT ANSWER

Configure the producers to use PERSISTENT delivery mode and retain synchronous sends to the existing active/standby deployment.

Persistent delivery causes ActiveMQ to write messages to its durable message store before acknowledging synchronous sends. The active/standby deployment uses shared durable storage, so the newly active broker can recover these queued messages after failover. This requires only the supported configuration change.

SAP-C03

A logistics company is modernizing an on-premises shipment application. An existing integration process reads committed shipment changes and converts proprietary XML records into self-contained, versioned JSON events. The process uses a JMS client that is compatible with Apache ActiveMQ Classic. Private connectivity between the data center and AWS is already configured.

New billing and tracking applications in AWS must each process every shipment event. Either application can be unavailable for up to 8 hours without interrupting event publication or the other application's processing. After recovery, the unavailable application must process the events it missed. Each application has a different internal data model, and changes to those models must not require changes to the shipment application or the other consumer. Duplicate delivery is acceptable if processing prevents duplicate business effects. Messaging capacity has been sized to retain the maximum expected backlog.

Which integration design meets these requirements?

Show answerCORRECT ANSWER

Publish persistent JSON events to an Amazon MQ for ActiveMQ topic. Provision a separate durable JMS subscription for each application before publication begins. Maintain a backward-compatible event contract, transform events into each application's internal model within that consumer, and acknowledge only after successful, idempotent processing.

Separate durable subscriptions give each application its own retained copy of the event stream, including events published while that subscriber is disconnected. Persistent messages and appropriate acknowledgments support recovery. A stable event contract with consumer-owned transformations isolates internal model changes, while idempotent processing handles redelivery without duplicate business effects.

Practice Amazon MQ in a full exam

Questions on Amazon MQ in each practice exam, with every answer option and an explanation for each:

Start a free practice exam

Learn Amazon MQ in lessons

3 short lessons on Amazon MQ in 2 certification courses.

Open the lessons

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.