liveBook · Manning

Message

As explained in Event Processing in Action

A message is a unit of information transmitted through a messaging system, which does not necessarily represent an event.

A message is a unit of information carried through a messaging system. It may represent an event, but it does not have to: a picture sent through message-oriented middleware is a message without necessarily being an event. section 1.4.6

Messages and events differ in several ways:

  • Messages may have timestamps, expiry, or ordering, but these are not required; temporal properties are fundamental to event processing. section 1.4.6
  • Messaging middleware typically handles messages separately, while event processing can operate on collections of events, such as through aggregation or pattern detection. section 1.4.6
  • In push-style event distribution, a producer sends event messages without waiting for consumer responses; multiple consumers may process a delivered event differently. section 2.1.3

A picture sent as a message

Sending a picture through message-oriented middleware makes it a message, but does not necessarily make it an event. section 1.4.6

Figure 2.3. Typical push-style event distribution

Shows a producer pushing event messages to consumers without waiting for responses. section 2.1.3

How Event Processing in Action covers it

How deep it goes
Distinguishes messages from events through temporal semantics and collection processing, while noting middleware overlap.
Examples
Uses a picture sent through middleware and a producer pushing event messages to consumers.
What you can do after
Understand when a message represents an event and recognize one-way push delivery.
How it connects
Connects messages to events, event processing, message-oriented middleware, event channels, and push-style distribution.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Event Processing in Action. The section links point to the parts of the book it draws on.