[zeromq-dev] mqtt

Martin Sustrik sustrik at 250bpm.com
Wed Feb 23 12:02:04 CET 2011

Hi Herry,

> I have an idea to use zeromq (brokerless pub/sub) to do lightweight
> broker-based pub/sub such as MQTT. This can be use to collect data from
> embedded devices (publisher) and create multiple usage of data
> (subscriber). The main problem is, the protocol should be lightweight
> and add simple security mechanism. I really interested with the
> brokerless concept in zeromq. but to implement the publisher side on
> embedded system (with CPU/memory constraint) I need the detailed
> protocol specification of zeromq pub/sub mechanism. does the spec
> already exist? Do you have any suggestion how to do this?

That's over TCP, right?

Have a look at zmq_tcp(7) then. The only additional requirement is that 
the first message sent and received is peer's identity. If you are not 
interested in identities, just send empty (0 byte) message and drop the 
identity you'll get from the peer.


More information about the zeromq-dev mailing list