[zeromq-dev] Broadcasting Requests

Pieter Hintjens ph at imatix.com
Thu May 5 17:15:16 CEST 2011

On Thu, May 5, 2011 at 4:54 PM, Fabien Ninoles
<fabien.ninoles at ubisoft.com> wrote:

> Moreover, since the behaviour of the PUBSUB/SUBPUB pair is exactly the same as an XREQ/XREP pair with simply the XREQ broadcasting the message instead of load-balancing it, I would like to know if there is feasible to have something resembling this in the future ?

If you chart the current socket types and their semantics you see that
a bidirectional fanout socket type is missing. I think you're the
first person to define a use case for it. Nice!

It doesn't make sense to implement as a socket option on an existing
socket, because this is either PUB tweaked to allow receiving, or
DEALER tweaked to broadcast instead of load-balancing. I'd suggest a
new socket type, e.g. GATEWAY.


More information about the zeromq-dev mailing list