Chapter 4. Message passing

The fundamental notion on which message passing is built is that of an event: the fact that a certain condition has occurred (the event) is bundled together with contextual information—like who did what when and where—and is signaled by the producer as a message. Interested parties are informed by the producer using a common transport mechanism and consume the message.

In this chapter, we will discuss in detail the main aspects of message passing:

  • The difference between focusing on messages or events
  • Whether to do it synchronously or asynchronously
  • How messages can be transmitted without overwhelming the recipient and with varying degrees of reliability

You will also see how message passing enables vertical ...

Get Reactive Design Patterns 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.