[zeromq-dev] ZMQ_IDENTITY revisited

Martin Sustrik sustrik at 250bpm.com
Mon Jul 11 09:35:58 CEST 2011

On 07/11/2011 09:19 AM, Dirkjan Ochtman wrote:

>> * ZMQ_SWAP removed. Writing data to disk should be done on top of 0MQ,
>> on inside it.
> What's the rationale for this? Was there a lot of complexity?

It's wrong layering. It's something like if TCP buffers were kept on disk.

Writing data to disk normally happens in two layers:

- in the OS ("swap" per se)
- in the business logic (databases)

So, ZMQ_SWAP can be either considered to be a swapping feature that 
kicks in in case of memory overload, in which case it should be (and it 
is) implemented by the OS.

Or, it could be considered to a database, in which case it should be 
moved to the application on top of 0MQ.


More information about the zeromq-dev mailing list