By Alvin Alexander. Last updated: January 16, 2022
As a brief note today, this is a list of recipes I wrote about “Akka Classic” actors for the first edition of the Scala Cookbook:
- Introduction to Chapter 13: Actors and Concurrency
- Recipe 13.1, How to get started with a simple Scala/Akka Actor
- Recipe 13.2, How to create a Scala/Akka Actor whose constructor requires arguments
- Recipe 13.3, How to communicate (send messages) between Scala/Akka actors
- Recipe 13.4, Understanding the methods in the Scala/Akka Actor lifecycle
- Recipe 13.5, How to start a Scala/Akka Actor
- Recipe 13.6, How to stop Akka Actors
- Recipe 13.7, How to shut down the Akka Actor system
- Recipe 13.8, Monitoring the death of an Akka Actor with “watch”
- Recipe 13.10, How to send a message to an Akka Actor and wait for a reply
- Recipe 13.11, How to switch between different Akka Actor states with “become”
In 2020 the folks at Akka would probably prefer that developers use Akka Typed, but they are continuing to support Classic.