[zeromq-dev] Is it possible to add message priority on top of ZeroMQ?

Steven McCoy steven.mccoy at miru.hk
Sat Jun 1 04:37:12 CEST 2013


On 31 May 2013 22:09, crocket <crockabiscuit at gmail.com> wrote:

> Imagine a situation where some messages are urgent and need to be
> delivered faster than low priority messages.
>
> ZeroMQ has no notion of message priority.
>
> Is it possible ever?
>

With TCP you have normal traffic and out-of-band traffic (break in telnet)
that is it.

To add priority it means you need a priority queue somewhere.  ZeroMQ by
name can thus not support that at a low layer but it is easy to add one
above ZeroMQ.  The natural choice would be the dealer / router and xpub /
xsub socket types and add an envelope with the priority.  This would allow
reuse of ZeroMQ's subject filtering mechanism.

-- 
Steve-o
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130531/1e576f69/attachment.htm>


More information about the zeromq-dev mailing list