ladderlore
Request a guide
  • Type a service name, like S3 or IAM.

Service · Application Integration

Amazon MQ

Managed ActiveMQ and RabbitMQ brokers, for applications that already use JMS, AMQP or MQTT and cannot be rewritten.

AZ AAZ B
Existing app
Active broker
Standby broker
EFSJMS or AMQPon failover
The app keeps its protocol. If the active broker fails, the standby takes over.
  • Protocols

    SQS and SNS
    AWS API and SDKs
    Amazon MQ
    JMS, AMQP, MQTT, OpenWire, STOMP
  • Servers

    SQS and SNS
    Serverless
    Amazon MQ
    Broker instances you size
  • Scaling

    SQS and SNS
    Automatic
    Amazon MQ
    Larger broker or more nodes
  • Pick it when

    SQS and SNS
    New application
    Amazon MQ
    Existing application, no rewrite
Amazon MQ is for migration. SQS and SNS are for new designs.

1 / 2

  • Protocols

    SQS and SNS
    AWS API and SDKs
    Amazon MQ
    JMS, AMQP, MQTT, OpenWire, STOMP
  • Servers

    SQS and SNS
    Serverless
    Amazon MQ
    Broker instances you size
  • Scaling

    SQS and SNS
    Automatic
    Amazon MQ
    Larger broker or more nodes

2 / 2

  • Pick it when

    SQS and SNS
    New application
    Amazon MQ
    Existing application, no rewrite
Amazon MQ is for migration. SQS and SNS are for new designs.

What it is

Amazon MQ is a managed message broker service for Apache ActiveMQ and RabbitMQ. A broker is a server that routes messages between applications. Many older applications talk to a broker through standard protocols such as JMS, AMQP, MQTT, OpenWire and STOMP. Moving them to Amazon MQ keeps their code and setup. You do not rewrite them for a new API.

What it is

AWS runs the brokers: it provisions the hardware, patches the software and handles backups. For high availability, ActiveMQ uses an active/standby pair in two Availability Zones, with shared storage on Amazon EFS. RabbitMQ uses a cluster of three nodes across three AZs. A single-instance broker has no standby and suits development and testing. Brokers run in your VPC, and security groups control access.

Pick Amazon MQ to migrate with no code change, or when you need broker features such as JMS. For new applications built on AWS, pick Amazon SQS and Amazon SNS: they are serverless, scale without sizing, and cost less to run.

Remember

  • Managed Apache ActiveMQ and RabbitMQ.
  • Standard protocols: JMS, AMQP, MQTT, OpenWire, STOMP. SQS and SNS use AWS APIs only.
  • Multi-AZ: an ActiveMQ active/standby pair, or a three-node RabbitMQ cluster.
  • It runs in your VPC on broker instances you size. It is not serverless.

Remember

  • Best for lift and shift of existing messaging. New designs use SQS or SNS.

On the exam

  • “Migrate an on-premises application that uses JMS or AMQP with no code changes” points to Amazon MQ.
  • “A new cloud-native application needs a simple queue” points to SQS, not Amazon MQ.
  • “A highly available message broker” points to a Multi-AZ deployment (active/standby or cluster).