[zeromq-dev] In the high-concurrency env, REQ-REP mode is not fast?
Pieter Hintjens
ph at imatix.com
Fri Jun 8 14:37:10 CEST 2012
On Fri, Jun 8, 2012 at 12:10 AM, kaka chen <kaka11.chen at gmail.com> wrote:
> Sorry, got it, I found it should share one context in all client threads,
> then will be fast again. I think the problem is the context is very heavy,
> cost many resources, am I right?
No, the problem is that REQ-REP is fully synchronous so you are doing
a round-trip for each message.
Please read the Guide and follow the examples for doing asynchronous
request-reply using ROUTER/DEALER sockets.
-Pieter
More information about the zeromq-dev
mailing list