[zeromq-dev] Scaling ZeroMQ

Michel Pelletier pelletier.michel at gmail.com
Thu Sep 11 23:39:06 CEST 2014


On Thu, Sep 11, 2014 at 2:23 PM, Mohit Anchlia <mohitanchlia at gmail.com> wrote:
>
> 4) process request - Now this is the place I think application is performing
> some work. This step looks like it's blocking, in other words the control
> will not get transferred to step 2) until this step is done. Now are all the
> requests from the clients just waiting on the socket waiting to be
> accepted/received by the server?
>
> I am sure I am missing some basic concept here.

Generally at step 4, you would hand off control of the message to some
concurrent thing, a thread, subprocess, coroutine, or by sending the
message in a non-blocking fasion down some other socket.

There are lots of good examples in the guide

http://zguide.zeromq.org/page:all#Multithreading-with-MQ

which one in particular tripped you up?  It could be fixed to explain.

-Michel



More information about the zeromq-dev mailing list