Azure IoT Hub & Devices consumption

Domagoj Bazina 221 Reputation points
2022-12-01T14:28:38.397+00:00

Hello guys,
I'm wondering is this behavior expected regarding the used resources.
Currently, I'm using Free Tier Azure IoT Hub, Consumption Function App, and Event Grid System Topic. So basically I'm sending the data to the IoT Hub devices & capturing the telemetry events using Event Grid Topic and Azure Function App that implement Event Trigger function.

So I've created Python based simulation script that sends messages to the IoT Devices using SDK
I've configured my setup to send 100 messages to the specific device, starting from 1 to 100. And each message is sent after certain time-period. Everything works fine, until that time-period is shorter than 0.5 seconds. So when I set that period for e.g 0.25 seconds, output of the IoT Hub will not be in order, i would get something like (1, 2, 3, 7, 5, 10, 12,13, 8, etc...) instead of (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, ...).

Would I benefit from using higher tier resources in this case? Also, I have seen that there is an option to update the IoT Hub Devices using MQTT and Websockets, would that help?

Thanks

Azure IoT
Azure IoT
A category of Azure services for internet of things devices.
377 questions
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,107 questions
Azure IoT SDK
Azure IoT SDK
An Azure software development kit that facilitates building applications that connect to Azure IoT services.
207 questions
0 comments No comments
{count} votes

Accepted answer
  1. chbeier 1,866 Reputation points
    2022-12-01T16:37:23.343+00:00

    Hello @Domagoj Bazina ,

    Just to ensure I understand right and clarify:

    1. Are you sending messages from the cloud to your devices? or
    2. Do you simulate a device with the Azure IoT Device SDK for Python to send messages from the Edge to the cloud?

    For your cloud setup and message processing, you might consider using the built-in EventHub-compatible endpoint instead of an additional Azure Event Grid.
    Be aware: Event Grid doesn't guarantee order for event delivery, so subscribers may receive them out of order, see here
    IoT Hub takes care of providing the D2C messages in order on the built-in Endpoint by using the same partition for a specific device.

    ----------

    If your question was solved, please do "accept answer" and feel free to upvote. If you need additional information, please provide more details.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful