This completes the overview of typed actors. We saw the lifecycle of the actor, how to create actors, how to pass and process messages, how to stop or kill the actors. We also saw how typed actors can be extended for additional hooks—preStart, postStop, Receiver, and Supervisor, which allow extending their functionality and becoming a bridge between the Actor Model and the object-oriented application.

In the next chapter, we shall cover the 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 the outbound actors.

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.