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 – Mailbox(MessageQueue)

It is a message queue for an Actor. It stores incoming messages and acts as a queue without any message broker.

In Akka Toolkit, each Actor typically has its own mailbox.

Actor picks up messages from the mailbox one by one and processes them, which means that it takes the necessary action.

The Akka Toolkit supports different kinds of mailboxes for different use case scenarios. Mainly, it supports the following types of mailboxes:

  • Bounded mailbox
  • Unbounded mailbox
  • Priority mailbox

These are again divided into the following two categories:

  • Blocking mailbox
  • Non-blocking mailbox

The bounded mailbox supports storing incoming messages up to some limit. If it's blocking the bounded mailbox and reaches its capacity, ...

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