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

How do we set certain publish topics to be priority over other topics? #19

Open
russellgsystems opened this issue Nov 9, 2022 · 2 comments

Comments

@russellgsystems
Copy link

russellgsystems commented Nov 9, 2022

We want the measurement data topic to have priority over other publish topics. We are using RabbitMQ as the MQTT broker. Maybe there is a way to set certain to higher priority in the RabbitMQ broker itself, but I haven't found it yet.

@russellgsystems russellgsystems changed the title How do we set certain publish message to be priority over other messages? How do we set certain publish topics to be priority over other topics? Nov 9, 2022
@francois-normandin
Copy link
Member

There is no such priority queues defined in MQTT protocol. If RabbitMQ broker supports it, this is an added feature of that broker, and not part of the spec. You could extend the LV MQTT Server class to recognize certain messages as being priority messages, but I am unsure how deep you'd have to go.

Alternatively, you could setup a dual-port broker (two brokers running concurrently) where one port is prioritized for the execution in your aggregate application.

@russellgsystems
Copy link
Author

Thanks @francois-normandin. I couldn't find a way to do with the RabbitMQ broker itself.

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