Share on twitter

EAI Patterns with Actor Model: Envelope Wrapper

We’ve discussed a few different ways to use Return Address with the Actor Model, which allows a message-receiving Actor to reply to an Actor other than the direct sender or forwarder of the message. Sometimes, however, it might work out for the best if your messages themselves support the means to dispatch to a reply-to Actor. This can be accomplished if a message has an Envelope Wrapper.

Often times an Envelope Wrapper is used when there are multiple transport layers, or when a message must be tunneled through to a network other than the one on which it originated. Generally speaking, a message that is produced by an Actor System such as Akka will not need an Envelope for those reasons, or the Actor System itself may provide the needed transport-specific Envelope. Yet, there may be other reasons for Actors in a given Actor System to use an Envelope.

. . .

The full text is now available as part of my book Reactive Enterprise with Actor Model on Safari Books Online.

Share on twitter

More to explore

What You Need From Agile

There continues to be all kinds of messages about Agile. My assessment is that there is both a rejection of Agile and

Actors Are Ok!

I have been using various forms of messaging for more than 30 years. Messaging has become second nature to me, but I