Need advice about which tool to choose?Ask the StackShare community!

Amazon MQ

54
324
+ 1
12
MQTT

592
570
+ 1
7
Add tool

Amazon MQ vs MQTT: What are the differences?

Introduction

Amazon MQ is a fully managed message broker service that makes it easy to set up and operate message brokers in the cloud. MQTT (Message Queuing Telemetry Transport) is a lightweight messaging protocol designed for IoT devices to communicate over unreliable networks.

  1. Message Broker vs Protocol: Amazon MQ is a message broker service that provides a fully managed solution for handling messages, while MQTT is a messaging protocol that ensures reliable, low-bandwidth communication between IoT devices.
  2. Protocol Support: Amazon MQ supports various messaging protocols, including MQTT, while MQTT is specifically designed for lightweight, publish-subscribe messaging scenarios.
  3. Message Persistence: Amazon MQ stores messages durably by default, ensuring that messages are not lost in case of failures, while MQTT does not guarantee message persistence unless a reliable messaging infrastructure is implemented by the client.
  4. Scalability: Amazon MQ is a fully managed service that automatically scales resources to handle message traffic, while MQTT requires manual configuration and monitoring to scale efficiently.
  5. Security: Amazon MQ provides built-in security features, such as authentication, authorization, and encryption, to protect messages and ensure secure communication, while MQTT requires additional security measures to be implemented by the client, such as SSL/TLS encryption and authentication.
  6. Integration with Other Services: Amazon MQ can easily integrate with other AWS services, such as Amazon SNS, Amazon SQS, and AWS Lambda, providing a comprehensive messaging solution, whereas MQTT integration with other services may require additional middleware or custom development.

In Summary, Amazon MQ is a managed message broker service that supports various messaging protocols, including MQTT, while MQTT is a lightweight messaging protocol specifically designed for IoT devices, with additional considerations needed for scalability and security.

Advice on Amazon MQ and MQTT
MITHIRIDI PRASANTH
Software Engineer at LightMetrics · | 4 upvotes · 271K views
Needs advice
on
Amazon MQAmazon MQ
and
Amazon SQSAmazon SQS
in

I want to schedule a message. Amazon SQS provides a delay of 15 minutes, but I want it in some hours.

Example: Let's say a Message1 is consumed by a consumer A but somehow it failed inside the consumer. I would want to put it in a queue and retry after 4hrs. Can I do this in Amazon MQ? I have seen in some Amazon MQ videos saying scheduling messages can be done. But, I'm not sure how.

See more
Replies (1)
Andres Paredes
Lead Senior Software Engineer at InTouch Technology · | 1 upvotes · 207.3K views
Recommends
on
Amazon SQSAmazon SQS

Mithiridi, I believe you are talking about two different things. 1. If you need to process messages with delays of more 15m or at specific times, it's not a good idea to use queues, independently of tool SQM, Rabbit or Amazon MQ. you should considerer another approach using a scheduled job. 2. For dead queues and policy retries RabbitMQ, for example, doesn't support your use case. https://medium.com/@kiennguyen88/rabbitmq-delay-retry-schedule-with-dead-letter-exchange-31fb25a440fc I'm not sure if that is possible SNS/SQS support, they have a maximum delay for delivery (maxDelayTarget) in seconds but it's not clear the number. You can check this out: https://docs.aws.amazon.com/sns/latest/dg/sns-message-delivery-retries.html

See more
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Amazon MQ
Pros of MQTT
  • 7
    Supports low IQ developers
  • 3
    Supports existing protocols (JMS, NMS, AMQP, STOMP, …)
  • 2
    Easy to migrate existing messaging service
  • 3
    Varying levels of Quality of Service to fit a range of
  • 2
    Lightweight with a relatively small data footprint
  • 2
    Very easy to configure and use with open source tools

Sign up to add or upvote prosMake informed product decisions

Cons of Amazon MQ
Cons of MQTT
  • 4
    Slow AF
  • 1
    Easy to configure in an unsecure manner

Sign up to add or upvote consMake informed product decisions

What is Amazon MQ?

Amazon MQ is a managed message broker service for Apache ActiveMQ that makes it easy to set up and operate message brokers in the cloud.

What is MQTT?

It was designed as an extremely lightweight publish/subscribe messaging transport. It is useful for connections with remote locations where a small code footprint is required and/or network bandwidth is at a premium.

Need advice about which tool to choose?Ask the StackShare community!

What companies use Amazon MQ?
What companies use MQTT?
See which teams inside your own company are using Amazon MQ or MQTT.
Sign up for StackShare EnterpriseLearn More

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with Amazon MQ?
What tools integrate with MQTT?

Sign up to get full access to all the tool integrationsMake informed product decisions

What are some alternatives to Amazon MQ and MQTT?
Amazon SQS
Transmit any volume of data, at any level of throughput, without losing messages or requiring other services to be always available. With SQS, you can offload the administrative burden of operating and scaling a highly available messaging cluster, while paying a low price for only what you use.
RabbitMQ
RabbitMQ gives your applications a common platform to send and receive messages, and your messages a safe place to live until received.
IBM MQ
It is a messaging middleware that simplifies and accelerates the integration of diverse applications and business data across multiple platforms. It offers proven, enterprise-grade messaging capabilities that skillfully and safely move information.
ActiveMQ
Apache ActiveMQ is fast, supports many Cross Language Clients and Protocols, comes with easy to use Enterprise Integration Patterns and many advanced features while fully supporting JMS 1.1 and J2EE 1.4. Apache ActiveMQ is released under the Apache 2.0 License.
Kafka
Kafka is a distributed, partitioned, replicated commit log service. It provides the functionality of a messaging system, but with a unique design.
See all alternatives