[zeromq-dev] architecture

Benoit Chesneau bchesneau at gmail.com
Mon Jan 24 23:39:41 CET 2011


Hi all,

I would like to use zeromq as a way to send quick notify workers about
new tasks and I currently hesitate about the strategy to use.

Context: I've a server web that forks on all cpus. Each workers can
send tasks to different services. Behind That I want to add or remove
any services I want depending on the load or the machine I add.

Tries:

At first I started by a REQ/REP strategy. The web servers workers
connect (REQ) to services (REP) . Each service I add add its ip to a
redis set that workers get and connect to.It mostly works but I need
in this case to send and receive on each parts where I just need send
from the workers without waiting a response. So back to the doc.

PUSH/PULL seems what I want but in this case I need to bind each
workers and let services knows about them where I want the inverse:
services notify workers they exist.

Is there any smarter solution to handle my problem ?

- benoît



More information about the zeromq-dev mailing list