richardmillen / zguide-examples

Implementations of the 0MQ examples in the guide.
http://zguide.zeromq.org/page:all
4 stars 0 forks source link

Asynchronous Majordomo Pattern in C++ #16

Open richardmillen opened 7 years ago

richardmillen commented 7 years ago

Implement the Asynchronous Majordomo Pattern example.

The Majordomo implementation in the previous section is simple and stupid. The client is just the original Simple Pirate, wrapped up in a sexy API. When I fire up a client, broker, and worker on a test box, it can process 100,000 requests in about 14 seconds. That is partially due to the code, which cheerfully copies message frames around as if CPU cycles were free. But the real problem is that we're doing network round-trips. ZeroMQ disables Nagle's algorithm, but round-tripping is still slow.

richardmillen commented 7 years ago

Will more than likely study the majordomo repo instead of implementing the book example.