[zeromq-dev] Async Client Server

Kevin Sapper kevinsapper88 at gmail.com
Fri Aug 12 14:48:37 CEST 2016


Answer 1: Yes.
Answer 2: You can use any recv method in a loop or use the poller class.
Answer 3: The server workers send 0-4 replies per request.

2016-08-12 2:58 GMT+00:00 Kevin Meredith <kevin.m.meredith at gmail.com>:

> Looking at http://zguide.zeromq.org/page:all#toc76:
>
>
> [image: Inline image 1]
> As I understand, the ROUTER needs to poll frequently to hear from each of
> its clients.
>
> Then, the ROUTER forwards any client message to the `DEALER`.
>
> Question 1: Is the ROUTER to DEALER connection asynchronous?
>
> Question 2: For the Server's DEALER to N DEALER Workers, must polling take
> place at the Server's DEALER?
>
> Looking at the book's text:
>
> > The clients send a request once per second, and get zero or more replies
> back.
>
> Question 3: I suppose the 0 comes from a Worker that dies, i.e. box/thread
> crashes? How could more than 1 reply return to the -Client?
>
> Thanks,
> Kevin
>
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20160812/6f9e2150/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 18606 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20160812/6f9e2150/attachment.png>


More information about the zeromq-dev mailing list