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.
Amazon Message Queue
- Amazon MQ supports industry-standard APIs and protocols for messaging, including JMS, NMS, AMQP, STOMP, MQTT, and WebSocket.
- You can switch from any standards-based message broker to Amazon MQ without rewriting the messaging code in your applications.
- MQ manages administrative tasks such as hardware provisioning, setup, patching, and failure recovery.
Amazon MQ can work in two modes.
- Single-instance broker in a single AZ
- Active/Standby broker in multi-AZs for high availability
Also there are 2 types of brokers.
- Durability-optimized broker: backed by EFS to support high availability and message durability
- Throughput-optimized broker: backed by EBS to support low latency and high throughput for high-volume applications
SQS vs. MQ
- Use MQ if you are already using an industry-standard messaging service and want to migrate to AWS.
- Use SQS and SNS if you are building a new message system. SQL is a lightweight, fully managed service that scales almost infinitely and provides simple, easy-to-use APIs.