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 ...