How we can build a close interaction between Actors? Just with help of messaging. In the previous post I've already demonstrated how we can send messages between Actors. In this post I want to continue topic of message exchange, but this time let's develop cooperation of two Actors which interact with each other.
Probably the most popular process which happens behind the scenes in Akka is a messaging. And it's not, what comes to mind instantly, no any text messages like in Skype or mobile phones. Akka Actors can deal with different objects and classes which represent messages (Strings also allowed). As usually I'll use Scala as a programming language.
Let's get acquainted with Akka Actors. This tutorial is useful for you if you have tried to start working with Akka using its official documentation, but stuck there. I'll try to deliver all information by small portions in a proportion 50/50 theory and practice. Scala will be used as a programming language.