buffer strategy for QOS>0 messages #856
Labels
Status: Available
No one has claimed responsibility for resolving this issue.
Type: Enhancement
A new feature for a minor or major release.
In my application. I am publishing sensor data and need to buffer messages in case connection is temporarily lost.
Thus, I am sending my data with QOS 2.
I limited the number of queued message in case of disconnection via max_queued_messages_set().
Now, If I got it right, here is what happens when the buffer runs full: all newer messages get discarded.
So, with a limit of 5, if I publish 1 2 3 4 5 6 7 8 9 0, after reconnection these messages get delivered: 1 2 3 4 5.
For me, it would be more useful if the buffer would be circularly rewritten, so the newest 5 messages are queued.
Is there a way to set this up?
The text was updated successfully, but these errors were encountered: