[zeromq-dev] matching REQ-REP on one side with PUB & PULL on the other side
ph at imatix.com
Tue May 31 20:20:46 CEST 2011
On Tue, May 31, 2011 at 10:58 AM, <alotsof at gmx.net> wrote:
> Think of the client as a management console, and each worker as a
> controller of a user session. As such, the workers are distinct, and I need
> to know about all of them.
Then your pattern seems wrong. When we speak of clients, servers, and
workers, the worker is a hidden detail of the server topology. What
you have are peers that talk to a single console. The server doesn't
seem to be useful in any sense. Either the server abstracts the
console from the workers, or it abstracts the workers from the
So consider this pattern:
* Console opens a SUB socket and binds to a well-known address.
* Other nodes open a PUB socket and connect to the console.
* Nodes then send status to the console.
You could use other socket types, e.g. PULL at the console, PUSH at
the nodes. Or ROUTER and DEALER, if you want the console to be able to
send information back to a node.
> P.S.: thanks for the amount of effort you pour into helping us newbies.
No problem. Send unmarked cash. Large bills preferred.
More information about the zeromq-dev