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

Look closer at MQTT buffering #31

Open
emiltin opened this issue Dec 3, 2024 · 4 comments
Open

Look closer at MQTT buffering #31

emiltin opened this issue Dec 3, 2024 · 4 comments

Comments

@emiltin
Copy link
Contributor

emiltin commented Dec 3, 2024

No description provided.

@emiltin emiltin added this to RSMP 4 Dec 3, 2024
@emiltin emiltin converted this from a draft issue Dec 3, 2024
@emiltin
Copy link
Contributor Author

emiltin commented Dec 3, 2024

How to we deal with a situation where the device looses connection to the broker for prolonged period of time?

@RazeAntoine
Copy link

Important messages should be stored so that they can be replayed. Perhaps we should use file storage on site? But it might also be interesting to manage a retention time or an expiry date per type of message, because sometimes certain commands are no longer of interest after a certain time.

@emiltin
Copy link
Contributor Author

emiltin commented Dec 12, 2024

Some MQTT libraries have buffering build-in, but it depends.
For example, I asked about how the Erlang emqtt library handles it at emqx/emqtt#236.
It buffer messages locally in RAM, depending on the Quality of Service, and other factors.

@emiltin
Copy link
Contributor Author

emiltin commented Dec 17, 2024

If we have a good way to fetch historic data, status update might not need to be buffered. Consumers can instead choose when to fetch any missing data. But it assumes that consumers have a way to know when they are missing data.

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

No branches or pull requests

2 participants