[zeromq-dev] Newbie Bait Request: Debug "Warning" mechanism.

Alexey Ermakov zee at technocore.ru
Wed Aug 18 00:22:05 CEST 2010

On Wed, Aug 18, 2010 at 1:42 AM, Pieter Hintjens <ph at imatix.com> wrote:
> In terms of the API, we:
> * Deprecate ZMQ_SUBSCRIBE
> * Deprecate the language of 'subscription' and 'filter' in favour of 'prefix'
> * Use ZMQ_WHERE to specify a prefix
> * Perhaps later add ZMQ_WHERENOT to specify a negative prefix

That would be great as an additional type of socket (ZMQ_FILTER)
connectable to a ZMQ_PUB socket. Throwing out ZMQ_SUB sockets or
having them to do “helpful” stuff like autosubscribing to everything
on poll()/recv() would make lots and lots of uses (like market data
subscriptions, an example that's used in tutorials by each and every
messaging framework) impossible.

There is just one problem with ZMQ_SUB sockets and that is of use
expectation in one specific case. They work great otherwise (barring
the lack of publisher-side matching with TCP sockets), and it isn't
even the problem in my opinion: the socket is called ZMQ_SUB for a
reason — it expects you to subscribe before you receive any data.
Please don't throw the baby out with the bath water just because of

More information about the zeromq-dev mailing list