Lagom is built on top of Play and Akka, so it is not surprising that the framework provides capabilities to interact with Akka actors. This makes Lagom really interesting for Akka developers who already have developed applications. It is easy and possible to migrate your Akka applications to microservices using Lagom. Another good use case for Akka in Lagom is when using clustered services. In this case, a developer might want to use a consistent hashing group of actors in order to ensure that the data always ends in the same actor even if it was received from different instances of a given service.
In this recipe, we will explore how to access the actor system to be able to leverage all the Akka power we have been learning through the book.Â