[zeromq-dev] [ask] MonitoredQueue Prefix

bino oetomo bino at indoakses-online.com
Fri Aug 29 05:57:19 CEST 2014

Dear All ...

I'm learning about monitor device based on

My script is at http://pastebin.com/3HvdCsHC

Basically it have 4 Process :
1. Gate : This is the one that use MonitoredQueue. It have zmq.PULL at the
frontend, zmq.PUSH at the backend, and zmq.PUB at the monitor port
2. monitor : this is the one that 'listen' the monitoring port of 'gate',
and just print out what it heard
3. puller : this one just PULL data from 'gate' backend port, and just
print out what it got
4. sender : This one just a simple payload pusher that push data to 'gate'

--result snipet--
Sender said : 1
Monitor : ipc:///tmp/msock GOT : in
PULLER Got : 1
Monitor : ipc:///tmp/msock GOT : 1
Sender said : 2
PULLER Got : 2
Monitor : ipc:///tmp/msock GOT : in
Monitor : ipc:///tmp/msock GOT : 2
Sender said : 3
PULLER Got : 3
Monitor : ipc:///tmp/msock GOT : in
Monitor : ipc:///tmp/msock GOT : 3
Longer result at http://pastebin.com/7WZ1PW0U

Looks like that monitor client always got 2 messages ... thats is :
a. 'in prefix'
b. real payload

My question is : Where and how to set so that monitor client only got 'the
real payload' and get rid of 'prefixes' ?

Note : my pyzmq version is '14.1.1'


More information about the zeromq-dev mailing list