-
Hi. It seems like the v2 SDK is not exposing packetsend and packetreceive. To ensure that data is always eventually published and acknoledged as successful in spite of potential long periods of disconnects, it would be ideal to be able to have more granular control over when a message publish is attempted (and at that point maybe store the message in a local DB), and when the PUBACK is received (at which point you know the message was ack-ed by the broker). Why is the SDK not exposing this? Even with persistent sessions, it is not a guarantee of successful delivery, so persistent local storage is needed. Also, could you please explain what the behaviour of the client side persisten session implementation is? Will messages be queued best effort? What is the buffer size? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The v2 sdk was designed so to handle the
So qos1 messages will be queued, while qos0 messages will not. There is no limit on the buffer size. You might want qos2, but that is not something that is provided by AWS IoT. You can implement your own checks locally (and save to a local db) to make sure that your messages get published. |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
The v2 sdk was designed so to handle the
packetsend
andpacketreceive
for you with the available options provided by AWS IoT. You can expect the persistent session to behave as described in the docs: