Azure IotHub Webhook message routing order when webhook server offline

繁伸 松尾 51 Reputation points
2021-02-11T04:24:09.69+00:00

Hi

I create d a Web Hook Event Grid Schema for my IotHub service. When Web Hook server offline (My server will automatically close every day after 16:00), Azure IoTHub still receive telemetry message from iot device (the message will be sent every 2 hours). The next day when I startup my server again, Azure IoTHub automatically send the old messages that can not sent at previous day due to closed server, it caused the message order error, in my case, the yesterday's 22:00 message came after today's 08:00 message so whenever I update the device's status to database, the newest data will be yesterday's data instead of today's data. How can I fix this message queue order bug ?

Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,013 questions
Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
278 questions
{count} vote

Accepted answer
  1. SatishBoddu-MSFT 19,451 Reputation points
    2021-02-12T01:30:41.977+00:00

    Hello @繁伸 松尾 Thanks for posting this query!
    -:Updated:-
    Are you not able to take any decisions or reading based on the "eventTime" ?

    As the documentation on the Tips for consuming events says that,

    Messages can arrive out of order or after a delay.

    67221-image.png


1 additional answer

Sort by: Most helpful
  1. 繁伸 松尾 51 Reputation points
    2021-03-02T02:15:26.437+00:00

    Understood. Thank you very much

    1 person found this answer helpful.
    0 comments No comments