Wolfram Language

ZeroMQ Publisher Model

ZeroMQ provides multiple socket types. A particularly useful case is the ZeroMQ publish-subscribe model. With it, sockets subscribe to publisher sockets to distribute messages in a high-performance way.

Create a ZMQ publisher socket and bind it to a port.

Connect multiple subscriber sockets to the same port.

Have each subscriber socket subscribe to all of the publishers on that port.

Write a message from the publisher socket.

Read the message each of the subscriber sockets received.

Related Examples

ja