[zeromq-dev] memory pb

Martin Sustrik sustrik at 250bpm.com
Mon May 24 23:50:43 CEST 2010


Hi Burak,
> It sounds like you need a LIFO queue. It may sound silly, but what
> you're asking for is done, to some extent, in memcached.
> 
> It'd certainly be interesting to generalize zeromq by having
> customizable queuing schemes, (a la priority_queue) but I don't know
> whether core devs are working on it, or even willing to accept a patch
> that introduces such a change at the very core of things.

Check my previous post in the thread. My argument was that even if you 
implement a LIFO to store the messages, the rest of the network behaves 
in FIFO way (that's the nature of networking). Thus what you'll get 
would be some kind of LIFO/FIFO mixture with no clear semantics.

On the other hand, priority queues maintain the FIFO semantics so there 
should be no crucial problem with implementing it.

Martin



More information about the zeromq-dev mailing list