Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] Not understanting the specifications

Hi Yves,

The messages should be stored for QoS>0, yes. The publisher flow is separate to the subscriber flow though, so the PUBLISH/PUBACK should happen straight away. It won't always be possible to deliver a message to a subscriber immediately, so waiting for all subscriber flows to complete would be a mistake.



On Thu, 12 Aug 2021, 11:50 yves baumes, <ybaumes@xxxxxxxxx> wrote:

I'm reading the mqtt specifications mqtt-v5.0.pdf. And I should say that I am a little bit lost, especially concerning the QOS2 messages (PUBREC, PUBREL and PUCOMP workflow).

But for the moment I'd like to stick with simple questions concerning the QOS1 messages and workflow.

Section "4.3.2 QOS1: At least once delivery ", more precisely concerning the figure 4.2: isn't there a missed "store message" on the receiver side, when the receiver gets the publish msg?

Let's say the receiver is a Broker: shouldn't it store the PUBLISH msg, and then send the PUBACK msg back to the sender? Or ... initiate and *complete* delivery to subscribers and only then send back the PUBACK msg? The specifications look like it states that the message ownership may be transferred quite lightly, doesn't it defeat the purpose of message queuing? 

Thank you for answering, I hope my questions are clear. Excuse me if it is not, I am not a native English speaker.

Yves Baumes.

mosquitto-dev mailing list
To unsubscribe from this list, visit

Back to the top