[zeromq-dev] pub/sub topic matching on sender side

Martin Sustrik sustrik at 250bpm.com
Sat Aug 14 14:36:33 CEST 2010

Pieter Hintjens wrote:
> On Sat, Aug 14, 2010 at 2:19 PM, Martin Sustrik <sustrik at 250bpm.com> wrote:
>> It is efficient. But being inside SUB socket it sends messages to a
>> single destination only (the user). Thus the output from the filter is
>> just a bit (pass/drop).
>> If it's on the PUB side there can be several destinations to send the
>> messages to, so the outcome of filtering would be rather a bit-vector.
> Ah, right.  So basically something like the algorithm we used in the
> OpenAMQ topic exchange, with your performance tweaks.

Yes. Inverted bitmap with trie instead of hashmap.


More information about the zeromq-dev mailing list