[zeromq-dev] Status on PUB side filtering

Garrett Smith g at rre.tt
Fri Jun 3 23:15:25 CEST 2011

On Fri, Jun 3, 2011 at 3:04 PM, Pieter Hintjens <ph at imatix.com> wrote:
> On Fri, Jun 3, 2011 at 12:55 PM, Garrett Smith <g at rre.tt> wrote:
>> At first blush, publish side filtering in 0MQ would address my use
>> case nicely. I realize the performance and complexity implications of
>> that model make it a poor (or challenging) fit for the 0MQ socket
>> layer.
> Another option would be to implement topic exchange logic in your
> application (it's not really complex) and use ROUTER (XREP) sockets to
> address DEALER (XREQ) subscribers. That is what I'd do today, if I was
> unable to make the PUB-side filtering with in the libzmq core.

I'm not following this. DEALER looks like it uses fair queuing, which
would distribute messages across subscribers in round robin fashion
rather than explicitly route messages.

I can understand routing in the context of one-socket-per-subscriber.
But is there a way to use a single DEALER socket for this?


More information about the zeromq-dev mailing list