[zeromq-dev] Publish / Subscribe vs Multicast

Martin Sustrik sustrik at 250bpm.com
Fri Feb 19 09:04:10 CET 2010


> Martin, I have one question regarding this rule of thumb: what if I have
> four processes A, B, C and D, where both A and B send to both C and D?
> A   B
> |\ /|
> | X |
> |/ \|
> C   D
> (Sorry for the lame ASCII art). Which process would bind and which would
> connect?

Depends on the scenario. Think of it in terms of server and client. 
Server is something that's there for the most of the time. Clients come 
and leave. Servers tend to bind to the address. Clients do connect.

Does that help?

More information about the zeromq-dev mailing list