How to protect ZeroMQ Request Reply pattern against potential drops of messages?

Ad 1) No, there is not any socket link-management interface exposed to user to test/reset the state of the FSA-to-FSA link in ZeroMQ framework. Yes, XREQ/XREP may help you overcome the deadlocks, that may & do happen in REQ/REP Scaleable Formal Communication Pattern: Ref.: REQ/REP Deadlocks >>> https://stackoverflow.com/a/38163015/3666197 Fig.1: Why it is wrong to use … Read more

Why doesn’t zeromq work on localhost?

As @fdb points out: The problem is at line: subscriber.bind(“tcp://localhost:5555”) try to change to: subscriber.bind(“tcp://127.0.0.1:5555”) However this deserves more explanation to understand why. The documentation for zmq_bind explains (bold emphasis mine): The endpoint argument is a string consisting of two parts as follows: transport://address. The transport part specifies the underlying transport protocol to use. The … Read more

Connecting to a remote IPython instance

If you want to run code in a kernel from another Python program, the easiest way is to connect a BlockingKernelManager. The best example of this right now is Paul Ivanov’s vim-ipython client, or IPython’s own terminal client. The gist: ipython kernels write JSON connection files, in IPYTHONDIR/profile_<name>/security/kernel-<id>.json, which contain information necessary for various clients … Read more

Differences between ZeroMQ and WebSockets

A: Real-Time-Messaging is a nice tag, however You may soon realise, that once going into the territory of Real-Time, there is no justification for spending clock-cycles on wrapping any message into the XHTML-Matrjoska-in-Another-Matrjoska-inside-another-Matrjoska alike envelopes-inside-envelopes and associated inefficiencies. Real-Time struggles to operate in real time, so to spend/lose a minimum achievable time necessary to process … Read more

Understanding advanced ZeroMQ socket types

Trivial Archetypes ZeroMQ “sockets” are sounding alike a socket-oriented device, however on a closer look this smart library rather adds a Formal Communication Pattern ( which btw. uses a true socket ) that has a layered design to internally address details like internal elastic-buffering, internal 1:N Fair-Queue-Sending / Polling, internal ioThread load-balancing, to name just … Read more

How to control the source IP address of a ZeroMQ packet on a machine with multiple IPs?

Well, ZeroMQ is a bit tricky to read as a socket-“counterparty” ( it’s not ) Why? Classical socket is a free-to-harness resource. ZeroMQ is a rather complex hierarchy of ideas and principles of behaviours ( better – distributed behaviours ), that help design smart distributed computing systems, without touching the low-level ( ZeroMQ well abstracted … Read more