[zeromq-dev] Publisher side filtering... (draft II )

Gerard Toonstra gtoonstra at gmail.com
Thu Jan 13 08:20:24 CET 2011

Hi James,

1. Yes, some more progress and I can forward a new patch with those changes.

    There were a couple of bugs since that I fixed. We can't test this in a
real prod environment, because we're doing this
   as part of a research project. Having said that, I've coded a forwarder
that selectively forwards and filters messages between
  two different "cluster" environments. The idea is that based on the first
message part, the message is filtered or forwarded.
   That seems to work, also the part of subbing/unsubbing based on what each
process knows.

   I wanted to get feedback first before continuing on this, so let me know
any more doubts.

2. sub/unsub messages are only sent upstream, which are never used by normal
messages. So messages flowing from sub->pub
    will always be sub/unsub messages.  There is a (very) small time window
between generating a sub/unsub and the reception at
    the publishing side. THis is the period when the subscriber is already
active, but the message to subscribe hasn't been forwarded yet.
   In that period, messages will not be received by the client.  When using
more xpub/xsub constructs, this time window will get a tiny
    bit larger. In comparison with other situations, as soon as the SUB is
created and sets the sockopt, it will start to receive messages,
   because all messages are published everywhere already.

I'll forward a patch with updates to the list later this day.



On Thu, Jan 13, 2011 at 2:11 AM, James Connor <james.connor at tibra.com>wrote:

> This looks promising Gerard.  I see this patch hasn't hit zeromq trunk yet
> (since it only changes xpub/xsub I thought it would be) - any more progress
> on
> this?
> Also a dumb question but how can we be sure your message received events
> (the
> ones that filter on 0 = unsub / 1 = sub) don't filter out normal messages?
> Cheers,
> James
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Gerard Toonstra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110113/e0018cd7/attachment.htm>

More information about the zeromq-dev mailing list