[zeromq-dev] Paranoid Pirate pattern with priority queuing
Hoobajoob Chef
verimart at hotmail.com
Tue Apr 28 18:05:46 CEST 2015
The requirement would just be: if there are multiple pending requests of differing priority, pending higher priority requests will always get delivered by the queue proxy to workers before pending lower priority requests.
I think this can be done in the queue proxy with per-priority endpoints on the frontend and a single backend endpoint for the workers at the cost of some additional enveloping work in the queue proxy so that worker responses can be sent back over the correct priority-specific frontend sockets.
> From: ph at imatix.com
> Date: Mon, 27 Apr 2015 21:55:00 +0200
> To: zeromq-dev at lists.zeromq.org
> Subject: Re: [zeromq-dev] Paranoid Pirate pattern with priority queuing
>
> If your requirement is to allow urgent traffic you can use multiple
> sockets connected to a single endpoint. If you want to explicitly stop
> lower-priority traffic, you have to have fully independent reading
> sockets, and poll them in order of priority.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20150428/6569efee/attachment.htm>
More information about the zeromq-dev
mailing list