[zeromq-dev] I need some advice please for StreamQ-Proxy

Laurent Alebarde l.alebarde at free.fr
Wed Jan 8 19:03:30 CET 2014


Hi Devs,

I am prototyping a ZMQ_STREAM based proxy to manage to proxy CURVE. My 
first prototype with one client and one worker works, but is not very 
usefull. I have to pair clients and workers. My first idea was to pair 
identity-ies attributed by the ZMQ_STREAM socket. But it cannot work as 
one worker can have several clients assigned to it. With identities, I 
can route a client message to its worker, but I don't know to which 
client I shall route the answer.

The problem is very different than with 0MQ 3.x where there was no 
security mechanism. There, we could add proxies to proxies and prefix 
the messages with a frame containing the identity in a kind of push/pop.

With the security mechanisms, I expect it does not work due to the 
handcheck.

I recall here the architecture I try to achieve:

|                  ___________________server__________________
                  ____________proxy___________
Client  ------- frontend       /      backend ------- Worker
DEALER          ZMQ_STREAM         ZMQ_STREAM         DEALER
CURVE                                                 CURVE|


At this point, I don't see a solution that may work without changing 
ZMTP. And even by modifying ZMTP, I don't know how.

I need your advices please.

Cheers,

Laurent




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20140108/e0865999/attachment.htm>


More information about the zeromq-dev mailing list