zmq-playground

prerequisites

setup

python

pdm install
mkdir -p ~/.config/wireshark/plugins
git clone https://github.com/whitequark/zmtp-wireshark.git ~/.config/wireshark/plugins/zmtp-wireshark

sniff the packets

start wireshark and capture your loopback

send some messages over the wire

pdm run simple/server.py
pdm run simple/client.py

decode the tcp packets as zmtp

where is decode as

decode as modal

patterns

request-reply

pdm run simple/server.py
pdm run simple/client.py

pub-sub

one-to-many

single publisher and multiple subscribers

pdm run pub_sub/sub.py
pdm run pub_sub/pub.py

many-to-many

pdm run xpub_xsub/zproxy.py
pdm run xpub_xsub/ztest.py