Chapter 8. Message Transformation

In Chapter 4, “Messaging with Actors,” I discussed Message Translator (143) as a general topic. In this chapter, you will dig deeper into various kinds of transformations that messages may undergo in your applications and integrations.

Envelope Wrapper: In typical middleware messaging systems there is a message header with distinct, standardized properties. The Actor model, and Akka specifically, doesn’t support message headers. However, you may want to wrap some messages inside an envelope-type structure that might even mimic a message header. The Envelope Wrapper (314) may be called on to perform some specific application functionality, such as filling the role of Channel Adapter (183), or as a sort of

Get Reactive Messaging Patterns with the Actor Model: Applications and Integration in Scala and Akka 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.