[zeromq-dev] Question Regarding XREP

Chuck Remes cremes.devlist at mac.com
Wed Dec 1 22:49:22 CET 2010


On Dec 1, 2010, at 2:57 PM, Praveen Baratam wrote:

> Hello All!
> 
> I was just reading the Advanced Stuff chapter of the guide and found the XREP socket as a router pretty interesting.
> 
> I just need a clarification that is not found anywhere in the guide or else where.
> 
> XREP(Router) uses the identity envelope to route the message to the correct connected XREQ(Sink). What if there are more than one XREQs(Sinks) connected with the same identity? Will the message be sent to all of them or only one of them?
> 
> Thanks in advance!

Praveen,

it isn't valid for multiple sockets to share the same identity. Make sure each one is unique. I usually append a 6-digit random number to the end of all of my socket identities when I override the default identity.

cr





More information about the zeromq-dev mailing list