Chapter 7. Message Routing
In Chapter 4, “Messaging with Actors,” you were introduced to the basic idea of Message Routers (140) and why they should be used, both in your local actor system and beyond, for integration purposes. Routers allow you to decouple the message source from the message destination, and you can place business logic in any given Message Router (140) to determine how the routing should take place. There’s nothing inherently wrong with a Message Router (140) being responsible for the business logic, but depending on the type of router used, you can limit the amount of business logic needed.
Since routing can be used both within an Akka cluster and across clusters for integration, remember that routing to remote routees is ...
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.