Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get acknowledgement from subscriber(s) after publish messages #13008

Closed
KaeYan93 opened this issue May 10, 2024 · 2 comments
Closed

Get acknowledgement from subscriber(s) after publish messages #13008

KaeYan93 opened this issue May 10, 2024 · 2 comments
Labels

Comments

@KaeYan93
Copy link

KaeYan93 commented May 10, 2024

What would you like to be added or enhanced?

Hi EMQX team,

Is there a way for publisher to get the acknowledgments from subscriber(s)? Let say the publisher expect 2 acks from 2 subscribers

Is my understanding correct that the QoS 2 only guarantees the message reaching to broker, but not necessary the subscribers right?

Why is this needed?

This is for the publisher to ensure the subscribers has received the message, and that it is not part of application code to implement this acknowledgement.

@kjellwinblad
Copy link
Contributor

Is my understanding correct that the QoS 2 only guarantees the message reaching to broker, but not necessary the subscribers right?

Your understanding is correct.

Is there a way for publisher to get the acknowledgments from subscriber(s)? Let say the publisher expect 2 acks from 2 subscribers

As far as I know, there is currently no such functionality. So, right now, I think you will have to relay on application logic to get such acknowledgments.

Perhaps, this is an extension that could be worth implementing in the feature. Can you explain why you need this to be implemented as part of EMQX rather than with application logic?

@zmstone
Copy link
Member

zmstone commented May 11, 2024

In MQTT, there is no builtin semantics for consumer confirmation. The specification however provided a mechanism and guidelines how to implement it with PUB/SUB primitives, check out request/response:
https://www.emqx.com/en/blog/mqtt5-request-response

@zmstone zmstone closed this as completed May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants