Messages published over MQTT from an IoT Greengrass device arrive out-of-order

0

Hi, when using IoT Greengrass I've found that when MQTT messages are published close together (less than 1-second interval) they may arrive out of order. Is this expected?

AWS
專家
已提問 3 年前檢視次數 542 次
1 個回答
0
已接受的答案

Out-of-order MQTT messages should be expected and solutions should be designed with this principle in mind. Messages published with QoS1 retries from the client when ACK is not received is a common way that messages get out of order. Many things can cause the ACK to not be received - Internet down, power outage, network congestion.

Strategies for handling out-of-order messages include use of sequencing numbers generated by the client and ignoring messages received with a timestamp older than the last processed message. For more guidance, consult the IoT Lens for AWS Well-Architected. https://docs.aws.amazon.com/wellarchitected/latest/iot-lens/welcome.html

已回答 3 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南