Chapter 3. Advanced Request-Reply Patterns

In Chapter 2, we worked through the basics of using ØMQ by developing a series of small applications, each time exploring new aspects of ØMQ. We’ll continue this approach in this chapter as we explore advanced patterns built on top of ØMQ’s core request-reply pattern.

We’ll cover:

  • How the request-reply mechanisms work

  • How to combine REQ, REP, DEALER, and ROUTER sockets

  • How ROUTER sockets work, in detail

  • The load-balancing pattern

  • Building a simple load-balancing message broker

  • Designing a high-level API for ØMQ

  • Building an asynchronous request-reply server

  • A detailed inter-broker routing example

Get ZeroMQ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.