Message passing and Java EE

Message passing pattern refers to several theories, but in this part, we'll mainly care about the asynchronous flavor. One illustration of this pattern is the actor flavor. An actor is something that can receive messages, send messages to other actors, create other actors, and designate the behavior for the next received message.

It is important to understand the basis of the underlying concepts:

  • Global communication relies on an asynchronous bus
  • Current message processing of an actor is based on a state (a bit like an internal state machine)
  • An actor can create other actors to process a message

With such a pattern, it is highly recommended to have immutable messages to avoid any concurrency issues and hard-to-debug ...

Get Java EE 8 High Performance 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.