Skip to Content
Scala Reactive Programming
book

Scala Reactive Programming

by Rambabu Posa
February 2018
Intermediate to advanced
552 pages
13h 46m
English
Packt Publishing
Content preview from Scala Reactive Programming

Akka Actor – Dispatcher

In the Akka Toolkit, the Dispatcher component plays a very important role and acts as an engine. In simple words, it is responsible for coordination; it takes the incoming message and hands it over to its Actor. In the Akka Toolkit, the Dispatcher component is useful for working on messages, so we call it MessageDispatcher.

The Akka's dispatcher performs the following tasks:

  • It picks up the incoming message from senders (Actor or non-Actor)
  • It publishes that message to its Actor's mailbox message queue
  • It checks whether its Actor is available or not to process that message
  • If its Actor is available, it picks up the message from the message queue and hands it over to its Actor to take the necessary action
  • It decouples ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Scala Programming Projects

Scala Programming Projects

Mikael Valot, Nicolas Jorand
Learning Scala

Learning Scala

Jason Swartz
Functional Programming in Scala

Functional Programming in Scala

Runar Bjarnason, Paul Chiusano

Publisher Resources

ISBN: 9781787288645Supplemental Content