neil
neil

Reputation: 23

MQTT subscriber missed messages

I have a basic MQTT question. If I am publishing on a topic lets say myTopic/1 and I am publishing messages faster than the broker is delivering them to the subscriber will some messages get overwritten and not delivered? This seems to be my experience when testing using AWS IOT broker service. Also messages seem to be delivered to the subscriber on a random order.

Im using the M2MQtt c# library for my publisher and subscriber tests.

Many Thanks

Upvotes: 0

Views: 1271

Answers (1)

Tomasz Pluta
Tomasz Pluta

Reputation: 59

It depends of used QoS. Only QoS1 and QoS2 guarantee message to be delivered. For low throughput problem you can search for non-standard implementation like shared-subsciption: https://www.hivemq.com/blog/mqtt-client-load-balancing-with-shared-subscriptions/

Upvotes: 0

Related Questions