question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Client side delivery guarantee (QoS 1 or 2)

See original GitHub issue

Steps:

1 - Connect to Broker 2 - Subscribe to the topic “test/” 2 - Disconnect the client 3 - Send a message to a topic “test/” with QoS 1 or 2 4 - Close the application 5 - Open the application 6 - Connect to Broker

Result:

Messages sent with QoS 1 and 2 will be lost

Expected results

Resend messages after restarting the application using MQTT only

By MQTT protocol specification, when using QoS 1 or 2, you are guaranteed that the message arrives in the broker, but if the client is offline and restart the application, the message will be loss

Using ManagedClient I will have the guarantee that the message will be delivered, but it has some limitations like CleanSession = false, so I can not guarantee that QoS 1 or 2 will reach me

It seems to me that the QoS 1 and 2 delivery guarantee defined in the MQTT protocol is not being met.

Is there any plan for this?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
chkr1011commented, Jan 27, 2022

Ah that was a mistake. This feature will be added as soon as there is time for it. As long as this is not implemented I recommend to use the regular client and doing the storage of the application messages manually.

1reaction
SeppPennercommented, Jun 28, 2019

What’s the status of this @chkr1011?

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is MQTT Quality of Service (QoS) 0,1, & 2?
MQTT Quality of Service (QoS) is an agreement between the message sender and receiver that defines the level of delivery guarantee for a ......
Read more >
MQTT- Which QOS should you Use? 0,1,2
MQTT supports three QOS levels which are designed to ensure message delivery. QOS 0 – Once (not guaranteed); QOS 1 – At Least...
Read more >
Client side delivery guarantee (QoS 1 or 2) · Issue #374
It seems to me that the QoS 1 and 2 delivery guarantee defined in the MQTT protocol is not being met. Is there...
Read more >
MQTT QoS Guide - Quality of Service 0, 1, 2 Explained
MQTT QoS 0 is one of the quality service levels in MQTT; it ensures that a message is sent only once but doesn't...
Read more >
Understanding mqtt subscriber qos
You are correct, there is no guarantee that a message published at QoS 2 will arrive at a subscriber who is using QoS...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found