ZeroMQ patterns

In this chapter, you will learn about the basic communication patterns that are supported by ZeroMQ. Do not worry if all that sound a bit theoretical; you will implement all of these patterns yourself throughout the chapter.

Request/reply pattern

The ZeroMQ library supports a variety of different communication patterns. For each of these, you will need different ZeroMQ socket types. The easiest communication pattern is the Request/reply pattern, in which a client opens an REQ socket and connects to a server listening on an REP socket. The client sends a request that is then replied to by the server.

Request/reply pattern

ZeroMQ Request/Reply sockets

It's ...

Get PHP 7 Programming Blueprints 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.