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

Add support for MQTT 5 message expiry interval property #1729

Closed
dimabarbul opened this issue Aug 27, 2023 · 2 comments · Fixed by #1756
Closed

Add support for MQTT 5 message expiry interval property #1729

dimabarbul opened this issue Aug 27, 2023 · 2 comments · Fixed by #1756
Assignees
Milestone

Comments

@dimabarbul
Copy link
Contributor

Message expiry interval property in MQTT 5 allows specifying that a message is valid for limited period of time. This allows a message broker to discard messages when the interval is up, and clients will not receive (and process) messages that are expired.

An example of such message can be live message to device that requires response. Processing such message after the timeout is unnecessary (and sometimes not desirable).

It would be nice to have special mqtt.message-expiry-interval (or, probably, something shorter) header that contains/sets message expiry interval property (for source and target mappings).

@thjaeckle
Copy link
Member

Sounds good, but only makes sense when producing messages, so for targets.

Or can it be of use when read out from a consumed message?

@dimabarbul
Copy link
Contributor Author

Good question. I don't have good answer though :-(

I noticed that, for example, mosquitto provides expiry interval in consumed messages properties. So I suppose that it might make sense for some scenarios.

I can't imagine such scenario, tbh, but I don't have a reason to say that it should not be available for sources.

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

Successfully merging a pull request may close this issue.

2 participants