Skip to Main Content
Reactive Messaging Patterns with the Actor Model: Applications and Integration in Scala and Akka
book

Reactive Messaging Patterns with the Actor Model: Applications and Integration in Scala and Akka

by Vaughn Vernon
August 2015
Intermediate to advanced content levelIntermediate to advanced
368 pages
14h 31m
English
Addison-Wesley Professional
Content preview from Reactive Messaging Patterns with the Actor Model: Applications and Integration in Scala and Akka

Chapter 6. Message Construction

In Chapter 4, “Messaging with Actors,” I discussed messaging with actors, but I didn’t cover much about the kinds of messages that should be created and sent. Each message must convey the intent of the sender’s reason to communicate with the receiver. As Enterprise Integration Patterns [EIP] shows, there may be any number of motivations based on the following:

Message intent: Why are you sending a message? Are you requesting another actor to perform an operation? If so, use a Command Message (202). Are you informing one or more other actors that you have performed some operation? In that case, use an Event Message (207). Have you been asked for some large body of information that you must convey to the requester ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Akka in Action

Akka in Action

Rob Williams, Raymond Roestenburg, Robertus Bakker
Functional Programming in Scala

Functional Programming in Scala

Runar Bjarnason, Paul Chiusano
Applied Akka Patterns

Applied Akka Patterns

Michael Nash, Wade Waldron

Publisher Resources

ISBN: 9780133846904Purchase book