AWS · Application Integration

Amazon MQ

Managed message brokers for Apache ActiveMQ and RabbitMQ, for applications that use standard messaging protocols such as JMS, AMQP and MQTT.

On the SAA-C03 exam listQueueingPublish and subscribe

What it is and what problem it solves

Amazon MQ runs Apache ActiveMQ Classic and RabbitMQ brokers for you. It exists for applications that already use standard messaging APIs and protocols (JMS, AMQP, MQTT, STOMP, OpenWire), so they can move to AWS without rewriting messaging code. AWS handles provisioning, patching and failover.

When to use it

  • Migrating applications that use ActiveMQ, RabbitMQ or JMS without code changes.
  • Systems that need protocols like AMQP or MQTT between services.

When to avoid it

  • New cloud-native applications: SQS and SNS scale without brokers and cost less to operate.
  • Event routing across AWS services: EventBridge.

Scaling model and bottlenecks

Scale by choosing larger broker instances or clusters (RabbitMQ) and networks of brokers (ActiveMQ); throughput is bounded by broker size, unlike SQS.

Limits and quotas

ItemValueContextSource
Brokers per Region 200 Source
checked
Storage per broker 20 GB (micro) or 200 GB (mq.m5 types) Source
checked

Quotas and limits change. Check the linked source before designing around a number.

Cost model

What you pay for

Broker instance-hours by size and deployment mode (single instance, active/standby or cluster), storage per GB-month, data transfer, and cross-Region replication.

Where it is cost-efficient

Existing broker-based applications moved without rewriting.

Where costs grow

Large active/standby or cluster brokers kept for small workloads.

Cost controls and common surprises

Right-size brokers and consider moving new workloads to SQS and SNS.

Prices differ by Region and change over time; see the pricing page linked under Sources.

Security

Controls the service provides

Brokers in your VPC, encryption at rest and in transit, broker users or LDAP authentication (ActiveMQ).

What you configure

Keep brokers private, manage broker users and permissions, and rotate credentials.

Logging and monitoring

Broker logs to CloudWatch Logs; CloudTrail.

Related security services

KMS, VPC, Secrets Manager.

Shared responsibility

AWS manages the brokers. You manage users, queues and client applications.

Availability, backup and failure behavior

Active/standby (ActiveMQ) and three-node clusters (RabbitMQ) across Availability Zones fail over automatically.

Common service combinations

Lambda can consume from Amazon MQ; SQS and SNS for new parts of the system.

Business application examples

  • A Java enterprise application using JMS moves to AWS on Amazon MQ unchanged.

Exam cues and common confusions

  • Migrate apps using JMS, AMQP, MQTT, STOMP without code changes: Amazon MQ.
  • New, cloud-native messaging: SQS and SNS.

Related

Courses and lessons

Services, comparisons and patterns

Sources

Independent study material, not affiliated with or endorsed by Amazon Web Services. AWS and service names are trademarks of Amazon.com, Inc. or its affiliates.

Last reviewed · By the ByteCamel team · How we write content

Was this page helpful?

Report a mistake