[zeromq-dev] Why PUB and SUB sockets don't use multi-part messages?

Dev Aggarwal devxpy at gmail.com
Thu May 31 13:13:36 CEST 2018

I recently used ROUTER and DEALER sockets, which used multi-part messages
to separate identity of sender and the message data.

I personally, found this approach quite sophisticated.

But then, I found some use for the PUB and SUB socket pair.
I was surprised to see the examples in the guide not using multi-part
Instead they used concatenation to append the "TOPIC" to the main message
and then filter out based on that.

Is there a specific reason for doing concatenation, instead of using the
first part of a multi-part message?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20180531/d75cb33e/attachment.htm>

More information about the zeromq-dev mailing list