Chapter 5. Dispatchers and Routers

Dispatchers are the heart of the Akka application and this is what makes it humming. Routers on the other hand, route incoming messages to outbound actors. In this chapter we will cover the following:

  • What a dispatcher is and how it works, various types of dispatchers and their usage and configuration settings
  • Different types of mailboxes, and their usage and configuration
  • What a router is, and different types of routers and their usage
  • How to write a custom router

Dispatcher is the engine that powers the Akka application. It is very important to understand the switches and knobs that need to be tuned to extract the maximum concurrency and scalability out of the application.

Dispatchers

In the real world, dispatchers ...

Get Akka Essentials now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.