3 ms·
what I'm wondering is: we have https://xkcd.com/927/ https://xkcd.com/927/ with sockets in frame 1, and zeromq in frame 3 Are there some clear wins of zeromq
by m463 6y ago
what I'm wondering is:
we have https://xkcd.com/927/ https://xkcd.com/927/ with sockets in frame 1, and zeromq in frame 3
Are there some clear wins of zeromq over sockets/udp/tcp?
- eeZah7Ux 6y agoIt's in no way a competing standard.
- nuxi 6y agoZMQ is not a replacement for sockets, it's a library that uses sockets (and other transport mechanisms) underneath. For more details: https://zguide.zeromq.org/docs/preface/#ZeroMQ-in-a-Hundred-Words https://zguide.zeromq.org/docs/preface/#ZeroMQ-in-a-Hundred-...
- kjeetgill 6y agoWhen people say that they mean it's a replacement for the use of sockets in your program, not that it replaces sockets ... Across the technological landscape? Within the tech stack? Hmm.
- nuxi 6y agoIf your program is the only user of sockets then okay, "use of sockets in your program" might be a valid assumption. But if you're interfacing with external components using sockets/whatever, using ZMQ will not solve anything. That's why I don't see it as a replacement/competing standard...
- jonex 6y agoI've used ZeroMQ lightly as a socket-replacement and for simple IPC and I'd say the key thing it solved was connection establishment. It turns out that opening a two way connection between two apps on the same network without a clear starting order can go wrong in many ways and become quite messy to get right. With ZeroMQ it more or less just magically worked and it allowed me to focus on the actual problem I was working on. The wide range of language support was also nice. It allowed me to test the interface using a Python notebook which came in handy for debugging.
- easytiger 6y agoIf you have ever written non trivial TCP sockets code you would notice for many purposes that using this saves you lots of very non trivial socket handling intricacies. For me 0mq works internally, and not for interfacing outside a closed system. I think that might be the source of some confusion