[zeromq-dev] Order by which PUB/SUB requests are sent/processed

Martin Sustrik sustrik at 250bpm.com
Wed Jan 25 03:35:14 CET 2012

On 01/25/2012 11:30 AM, Michel Pelletier wrote:
> If I follow what you're asking, you want the numbers in your first
> email to have a more even distribution than what they have now, where
> no one subscriber gets the message "first", so to speak.  I'm not sure
> it makes sense for 0mq to try to make any guarantees on the time of
> arrival.

It cannot do that. Exact arrival time depends on your network, jitter in 
the OS and similar.

> Messages could be going out same or different transports and
> interfaces.  Maybe a better solution for you would be for your workers
> to "roll the dice" to see who will pop first.

Yes. You can implement that by introducing a random delay between 
receiving the pub/sub message and popping the queue.


More information about the zeromq-dev mailing list