LabVIEW-Open-Source / MQTT-Client

A LabVIEW-based client for MQTT
Other
27 stars 4 forks source link

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

Open russellgsystems opened 1 year ago

russellgsystems commented 1 year ago

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.

francois-normandin commented 1 year ago

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 commented 1 year ago

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