Search code examples
amazon-web-servicesmqttiotmessagebrokeraws-iot

What is the difference between Jobs and Messages in AWS IoT?


Jobs and Messages are both just transactions of text between AWS IoT service and devices.

Why should I use jobs than messages or the other way around?


Solution

  • They are transaction but they have their differences

    Messages - The AWS IoT message broker is a publish/subscribe broker service that enables the sending and receiving of messages to and from AWS IoT. The act of sending the message is referred to as publishing. The act of registering to receive messages for a topic filter is referred to as subscribing.

    Example - When communicating with AWS IoT, a client sends a message addressed to a topic like Sensor/temp/room1. The message broker, in turn, sends the message to all clients that have registered to receive messages for that topic.

    Jobs - AWS IoT jobs can be used to define a set of remote operations that are sent to and executed on one or more devices connected to AWS IoT.

    Example - you can define a job that instructs a set of devices to download and install application or firmware updates, reboot, rotate certificates, or perform remote troubleshooting operations.

    To use Jobs or Messages is up to your requirements. If you want to update a set of devices Jobs seems to do the work, or its just one device message will do.