Architecture of a Single Cluster

Workers and clients are synchronous. We want to use the load-balancing pattern to route tasks to workers. Workers are all identical; our facility has no notion of different services. Workers are anonymous; clients never address them directly. We make no attempt here to provide guaranteed delivery, retries, and so on.

For reasons we already examined, clients and workers won’t speak to each other directly. This makes it impossible to add or remove nodes dynamically. So, our basic model consists of the request-reply message broker we saw earlier (Figure 3-14).

Cluster architecture

Figure 3-14. Cluster architecture

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.