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

Amazon IoT

122
143
+ 1
1
Amazon MQ

54
325
+ 1
12
Add tool

Amazon IoT vs Amazon MQ: What are the differences?

Introduction

Amazon IoT and Amazon MQ are two services provided by Amazon Web Services (AWS) that offer different capabilities for messaging and communication within an application or system. While both services provide reliable messaging, there are key differences between Amazon IoT and Amazon MQ.

  1. Message Protocols:

    • Amazon IoT supports several message protocols, including MQTT, HTTP, and WebSockets. This allows for flexible and efficient communication between devices and other systems.
    • On the other hand, Amazon MQ primarily uses the AMQP (Advanced Message Queuing Protocol) and MQTT protocols, enabling reliable and secure messaging between applications.
  2. Focus on IoT Devices:

    • As the name suggests, Amazon IoT is designed specifically for Internet of Things (IoT) devices. It provides features such as device shadowing, which allows decoupled communication between devices and applications in a stateful manner.
    • Amazon MQ, on the other hand, is a managed message broker service that is not specific to IoT devices. It is designed for general message-oriented middleware use cases, providing support for various messaging patterns and protocols.
  3. Message Persistence:

    • Amazon IoT primarily relies on device shadows to store and persist messages. Device shadows allow devices to synchronize their states and communicate with applications even if the device is offline.
    • In contrast, Amazon MQ provides durable message persistence by storing messages in message retention periods, ensuring that messages are not lost even in the event of system failures.
  4. Scalability and Availability:

    • Amazon IoT provides automatic scaling capabilities, allowing it to handle large numbers of devices and deliver messages reliably. It also offers device management and monitoring features.
    • Amazon MQ is designed to be highly available and scalable, providing automatic infrastructure maintenance and scaling. It offers ActiveMQ as the underlying message broker, enabling it to handle high message volumes efficiently.
  5. Pricing Model:

    • Amazon IoT pricing is primarily based on the number of messages processed by devices and the features used. This allows for flexible pricing based on the specific requirements of the IoT application.
    • Amazon MQ pricing is based on the instance size and message throughput, providing a pay-as-you-go model. This allows users to choose the appropriate instance size and pay only for the messaging capacity they need.

In summary, Amazon IoT focuses on IoT devices, supports multiple protocols, and provides features like device shadowing. On the other hand, Amazon MQ is a general message broker service, primarily using AMQP and MQTT protocols, with durable message persistence and high scalability.

Advice on Amazon IoT and Amazon MQ
MITHIRIDI PRASANTH
Software Engineer at LightMetrics · | 4 upvotes · 288.3K 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 · 219.6K 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
Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of Amazon IoT
Pros of Amazon MQ
  • 1
    Websocket broadcast
  • 7
    Supports low IQ developers
  • 3
    Supports existing protocols (JMS, NMS, AMQP, STOMP, …)
  • 2
    Easy to migrate existing messaging service

Sign up to add or upvote prosMake informed product decisions

Cons of Amazon IoT
Cons of Amazon MQ
    Be the first to leave a con
    • 4
      Slow AF

    Sign up to add or upvote consMake informed product decisions

    What is Amazon IoT?

    AWS IoT is a managed cloud platform that lets connected devices easily and securely interact with cloud applications and other devices. AWS IoT can support billions of devices and trillions of messages, and can process and route those messages to AWS endpoints and to other devices reliably and securely. With AWS IoT, your applications can keep track of and communicate with all your devices, all the time, even when they aren’t connected.

    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.

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

    What companies use Amazon IoT?
    What companies use Amazon MQ?
    Manage your open source components, licenses, and vulnerabilities
    Learn More

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

    What tools integrate with Amazon IoT?
    What tools integrate with Amazon MQ?
    What are some alternatives to Amazon IoT and Amazon MQ?
    Azure IoT Hub
    Use device-to-cloud telemetry data to understand the state of your devices and define message routes to other Azure services without writing any code. In cloud-to-device messages, reliably send commands and notifications to your connected devices and track message delivery with acknowledgement receipts. Device messages are sent in a durable way to accommodate intermittently connected devices.
    Postman
    It is the only complete API development environment, used by nearly five million developers and more than 100,000 companies worldwide.
    Postman
    It is the only complete API development environment, used by nearly five million developers and more than 100,000 companies worldwide.
    Stack Overflow
    Stack Overflow is a question and answer site for professional and enthusiast programmers. It's built and run by you as part of the Stack Exchange network of Q&A sites. With your help, we're working together to build a library of detailed answers to every question about programming.
    Google Maps
    Create rich applications and stunning visualisations of your data, leveraging the comprehensiveness, accuracy, and usability of Google Maps and a modern web platform that scales as you grow.
    See all alternatives