[zeromq-dev] Notes from a hackathon

Pieter Hintjens ph at imatix.com
Tue Feb 3 14:06:36 CET 2015


On Tue, Feb 3, 2015 at 1:01 PM, Doron Somech <somdoron at gmail.com> wrote:

> Pieter - regarding the blog post, I'm not sure about setting the routing id
> on the socket

Indeed, that isn't atomic with sending and so can't work with
threadsafe sockets. I've changed the article.

I think we can either get the routing id as a message property, and/or
add a "reply to message" semantic that does this implicitly. The
second is easier for simple servers, the first is better for realistic
servers.

Since it only applies to server sockets, I think we would benefit from
a zserver_reply () method (or similar).

We might also think of moving the picture send/recv API into libzmq at
some point since it's the immediate replacement for framing.

> I also have a question regarding the session management (really liked it),
> but how would know it is a socket level message and not a application level?
> Also do you think it should be enabled by default or only if an option is
> set?

To make session management work we'd have to implement it using ZMTP
control commands, invisibly to the application. Same as heartbeating
at that level.

-Pieter



More information about the zeromq-dev mailing list