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

Request / Response: Formalize the request/response pattern within MQTT #829

Closed
Tracked by #695
andsel opened this issue Apr 20, 2024 · 2 comments · Fixed by #840
Closed
Tracked by #695

Request / Response: Formalize the request/response pattern within MQTT #829

andsel opened this issue Apr 20, 2024 · 2 comments · Fixed by #840
Assignees
Labels

Comments

@andsel
Copy link
Collaborator

andsel commented Apr 20, 2024

Formalize the request/response pattern within MQTT and provide the Response Topic and Correlation Data properties to allow response messages to be routed back to the publisher of a request. Also, add the ability for the Client to get configuration information from the Server about how to construct the response topics.

Implementation

Implement the management of response information header in CONNACK. When a client send a CONNECT with request response information property set, the server reserve a subtree of the subscription topic so that client can receive response publishes for request-response flow.
The server reserve a subtree specific for the connecting (requester) client, for example /reqresp/reponse/<client id> and configure read access for the client, and write access for the rest (*). This is needed to automatically provide a response topic configured with correct access rights.

@andsel andsel changed the title Request / Response: Formalize the request/response pattern within MQTT and provide the Response Topic and Correlation Data properties to allow response messages to be routed back to the publisher of a request. Also, add the ability for the Client to get configuration information from the Server about how to construct the response topics. Request / Response: Formalize the request/response pattern within MQTT Apr 20, 2024
@andsel andsel self-assigned this Apr 20, 2024
@andsel andsel added the mqtt5 label Apr 20, 2024
@hylkevds
Copy link
Collaborator

Great!
I'm looking forward to trying out the request/response implementation soon.
We're currently working on version 2.0 of the OGC SensorThings API, and one of the things we plan on doing is defining how to use the full REST API over the MQTT5 reqest/response mechanism. That would give OData over MQTT. I've always wondered why OASIS didn't to that themselves, given that both are OASIS standards...

@andsel
Copy link
Collaborator Author

andsel commented Jul 22, 2024

That's really interesting @hylkevds , please if you find any bug or have suggestion to improve this open an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants