[zeromq-dev] Fwd: Exact matching on subscription topics

Staffan Gimåker staffan at spotify.com
Tue Jan 24 09:32:36 CET 2012


Here's an initial go at this if anyone wants to have a look:

https://github.com/gimaker/libzmq/tree/exact-matching

<https://github.com/gimaker/libzmq/tree/exact-matching>It probably needs a
bit more polish and documentation, but it'd be nice to get some feedback if
it's on the right track.

/S

On Thu, Jan 19, 2012 at 11:17 PM, Martin Sustrik <sustrik at 250bpm.com> wrote:

> Hi Staffan,
>
>
>  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.
>>
>
> This is an interesting problem.
>
> I guess the solution would have to take advantage of the fact that PUB/SUB
> is intrinsically unreliable, i.e.when low on resources the messages may be
> dropped even though they match the filter.
>
> Similarly, when low on resources, application of subscriptions may be
> delayed until the point when there are more resources available.
>
> There are different possibilities further on the way: Applying
> backpressure if the publisher is not able accept the subscription at the
> moment, periodic re-trying to send the subscription and similar.
>
> Martin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120124/1d992184/attachment-0001.htm>


More information about the zeromq-dev mailing list