O'Reilly logo

Akka Essentials by Munish K. Gupta

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

Dispatchers and routers

A dispatcher controls and coordinates the message dispatching to the actors that is mapped on the underlying threads. Akka provides multiple dispatch policies that can be customized according to the underlying hardware resource (number of cores or memory available) and type of application workload.

In Akka, a router is also a type of actor, which routes the incoming messages to the outbound actors. When a large number of actors are working in parallel to process the incoming stream of messages, the router actor directs the message from the source to the destination actor.

Refer to Chapter 5, Dispatchers and Routers for more details on dispatchers and routers. Here we will cover how to make use of dispatchers and routers with ...

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