Re:Mosquitto: An open-source MQTT broker
by jvanderbot on Wednesday September 29, 2021 @02:57PM
(#28698260)
I have used ZMQ for this with great success. The one-line python calls to send data between nodes are really nice.
[ Parent
| on HN ]
Re:Mosquitto: An open-source MQTT broker
by alias_neo on Wednesday September 29, 2021 @04:07PM
(#28699205)
ZeroMQ is fantastic. I've been using at work for a few years now, but I generally enjoy the tech anyway, their documentation[0] and "The Guide"[1] is also really nice, with examples for all of the different language bindings.
From C or Golang (or a bunch of other language bindings) you can set up some nice pub/sub or req/res with fan in/fan out and all sorts of cool routing with low-level, high speed sockets with the added power that ZMQ provides, such as the queueing, high-watermarks etc. You can also enable encryption easily with CurveZMQ which is a refreshing change from TLS.
Re:Mosquitto: An open-source MQTT broker
by tombert on Wednesday September 29, 2021 @06:03PM
(#28700579)
I almost feel like the guide should be mandatory reading for anyone learning network programming. It gives extremely digestible summaries of most of the network patterns, when and why you'd use them, and then how they're done in ZeroMQ. Even if you end the guide thinking that ZeroMQ is stupid (which you probably wouldn't), you'd still probably benefit from having read the guide.