Chapter 4. Reliable Request-Reply Patterns

Chapter 3 covered advanced uses of ØMQ’s request-reply pattern with working examples. This chapter looks at the general question of reliability and builds a set of reliable messaging patterns on top of ØMQ’s core request-reply pattern.

In this chapter, we focus heavily on user-space request-reply patterns, which are reusable models that help you design your own ØMQ architectures:

  • The Lazy Pirate pattern: reliable request-reply from the client side

  • The Simple Pirate pattern: reliable request-reply using load balancing

  • The Paranoid Pirate pattern: reliable request-reply with heartbeating

  • The Majordomo pattern: service-oriented reliable queuing

  • The Titanic pattern: disk-based/disconnected reliable queuing

  • The Binary Star pattern: primary backup server failover

  • The Freelance pattern: brokerless reliable request-reply

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.