Chapter 2. The Actor Model with Scala and Akka

There are a few distinct ways to program with actors. The Actor model can be used through an actor library toolkit, or it can be implemented directly in a language. ActorScript is one example of an actor programming language. Actors were added to Smalltalk. Erlang has actors but is not actor-based through and through. Erlang supports actors/processes as first-class concurrency abstractions. More recently, languages such as Scala and Scratch support actor-based programming.

Scala, a Java virtual machine (JVM) language, also does not implement actors as part of a programming language. Rather, Scala comes with an actor library–based toolkit called Akka. Thus, Scala has significant similarities to Erlang ...

Get Reactive Messaging Patterns with the Actor Model: Applications and Integration in Scala and Akka now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.