O'Reilly logo

Akka Concurrency by Derek Wyatt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 10

Routing Messages

Remember that whole "strongly typed messages" and "untyped endpoints" stuff that keeps coming up, over and over and over again? Well we're about to talk about another reason why that's just awesome: routing. Akka's routing feature lets you alter a message's path from sender to receiver. Rather than horrifically shoving irrelevant message-handling behaviour into sender and receiver, we can put that general handling logic into an intermediary.

10.1 Routers are not actors

If routers were implemented using actors, with the full family of players—Dispatcher, Mailbox, ActorRef—you might expect that routers would be bottlenecks to performance. Well, you don't need to worry about that. The methods of the router are invoked ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required