spin
spin copied to clipboard
Support MQTT V5
It seems like outbound-mqtt
only supports MQTT V3 (@suneetnangia can you please confirm that is correct). It would be nice to support MQTT V5 as well.
I care about this mostly from the perspective of OTEL trace propagation being easier in V5.
Client supports v5 via a module (https://docs.rs/rumqttc/latest/rumqttc/v5/index.html) so in theory this should be reasonably easy.
@calebschoepp Would we need to support v3 and v5 alongside each other, or would v5 interoperate with v3 brokers?
I have no clue and know very little about the IoT messaging space and was hoping @suneetnangia could weigh in on that.
A brief google seems to indicate that there is not full backwards compatibility and that we would likely need to support both versions in parallel.
One alternative to both in parallel could be the possibility of runtime config where you choose what version of the host component you would want.