Re:Mosquitto: An open-source MQTT broker
by IshKebab on Wednesday September 29, 2021 @02:42PM
(#28698063)
All Dyson smart products use MQTT. As I recall it works fine from a performance point of view (it's a very lightweight protocol), but personally I thought it was a pretty flawed choice because the problem of choosing/discovering paths is just completely ignored, and it shares the same problem as all event bus style systems - events can get lost, it's very difficult to debug and learn, etc.
[ Parent
| on HN ]
Re:Mosquitto: An open-source MQTT broker
by SavantIdiot on Wednesday September 29, 2021 @02:53PM
(#28698202)
> events can get lost,
Well, yes, but QoS=1 or 2 with a reasonably large queue I haven't seen loss issues.
What kind of loss problems are you running into (that I should be worried about)?
Re:Mosquitto: An open-source MQTT broker
by IshKebab on Wednesday September 29, 2021 @03:05PM
(#28698358)
Yeah I don't mean due to the protocol, I mean due to application bugs where something adds a message to some queue and the thing that is meant to process it doesn't for some reason, and then nothing will ever realise.
Compared to callbacks / RPC for example, where you have a function call the either has to succeed or it has to fail.
It's not a deal breaker but I don't like it.
Re:Mosquitto: An open-source MQTT broker
by RedShift1 on Wednesday September 29, 2021 @03:47PM
(#28698945)
If your MQTT client allows control over this aspect of the protocol, you can just not ACK QOS > 0 messages that failed to process. Next time you connect you'll get the non-ACK'ed messages first.