by rubiquity · 11y ago · 0 comments
I'll just leave this here for you: http://bravenewgeek.com/you-cannot-have-exactly-once-deliver...
Welcome to message queues. Where the network is both your best friend and enemy.
[1] http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-o...
The reason that is important is because it has large ramifications for other parts of the delivery promise (such as order guarantees) or the implementation of the protocol (such as how chatty MQTT is).
It is relatively trivial to implement a system with exactly once delivery if you allow for client filtering and don't have performance or delivery time constraints.
If the recipient fails to process the message for some reason it will reappear after the visibility timeout.