ZMQ Socket Patterns
Client/Server pattern (bidirectinal, thread-safe)
ZMQ_CLIENTZMQ_SERVER
Radio/Dish pattern (unidirectional, thread-safe)
A Dish joins a group in order to recive a messafe.
A Radio specifies the group of the messafe in the messafe itself.
ZMQ_DISHZMQ_RADIO
Publisher/Subscriber pattern (unidirectional, NOT thread-safe)
j A Subscriber subscribes to messafes starting with a given prefix.
A Publisher publishes data to its subscribers, according to their subscription.
ZMQ_SUBZMQ_XSUBZMQ_PUBZMQ_XPUB
Pipeline patterns (unidirectional, NOT thread-safe)
ZMQ_PULLZMQ_PUSH
Scatter/Gather pattern (unidirectional, thread-safe)
ZMQ_SCATTERZMQ_GATHER
Exclusive pair pattern (bidirectional, NOT thread-safe)
ZMQ_PAIR
P2P pattern (bidirectional, thread-safe)
Connect one peer to many peers.
ZMQ_PEERZMQ_CHANNEL
Native pattern (bidirectional, NOT thread-safe)
ZMQ_STREAM
Request/Reply pattern (bidirectional, NOT thread-safe)
ZMQ_REQZMQ_REPZMQ_DEALERZMQ_ROUTER