Message Construction
For more details and full analysis of each pattern described in this section, please refer to Chapter 6 of Reactive Messaging Patterns with the Actor Model by Vaughn Vernon.
- Introduction
- Messaging with Actors
- Messaging Channels
- Message Construction
- Message Routing
- Message Transformation
- Message Endpoints
- System Management and Infrastructure
Command Message
Use a Command Message to reliably invoke a procedure in another application.
Document Message
Use a Document Message to reliably transfer a data structure between applications.
Event Message
Use an Event Message for reliable, asynchronous event notification between applications.
Request-Reply
Send a pair of Request-Reply messages, each on its own channel.
Return Address
The request message should contain a Return Address that indicates where to send the reply message.
Correlation Identifier
Each reply message should contain a Correlation Identifier, a unique identifier that indicates which request message this reply is for.
Message Expiration
Set the Message Expiration to specify a time limit how long the message is viable.
Format Indicator
Design a data format that includes a Format Indicator, so that the message specifies what format it is using.