[zeromq-dev] Fwd: Exact matching on subscription topics
staffan at spotify.com
Thu Jan 19 11:26:18 CET 2012
On Thu, Jan 19, 2012 at 1:36 AM, john skaller <skaller at users.sourceforge.net
> On 19/01/2012, at 3:57 AM, Chuck Remes wrote:
> > This would provide some room to grow if the library were to ever get a
> more complex matching mechanism like regular expressions.
> > #define ZMQ_SUBSCRIBE_REGEX_MATCH <int>
> No. The way you do this is with a callback. So it becomes more like:
Agreed, having a model where the user (optionally) is in full control of
the filtering (and storing subscriptions) would be ideal. I'm not quite
sure how to implementing that in zeromq though.
For example, it'd be nice to have the ability to drop a subscription
request if you're running low on resources. As it is now, you can force a
PUB node into swapping just by making a ton of subscription requests, and
the node can't really do anything about it.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the zeromq-dev