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

Device version in a separate topic? #309

Open
nstadigs opened this issue Nov 19, 2024 · 1 comment
Open

Device version in a separate topic? #309

nstadigs opened this issue Nov 19, 2024 · 1 comment

Comments

@nstadigs
Copy link

nstadigs commented Nov 19, 2024

Like homie/5/my-device/$version

This way a stateful client won't have to subscribe to the $description topic and parse the payload as long as the version is the same.
The description payload is probably the largest one so this way we can probably save some bandwidth and startup time, no?
This adds some complexity, but this doesn't have to be enforced. Clients could just subscribe to the $description topic directly if they want (like stateless clients).

Another upside of this is that keeping the version out of the description makes using hashes for versions more viable.

What do you think?

@Tieske
Copy link
Contributor

Tieske commented Nov 19, 2024

I think that's overkill, the Homie5 thing started with the need to reduce topics.
If anything, a device shouldn't be re-publishing its description if it didn't change.

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

No branches or pull requests

2 participants