Akka Ask

Posted on Leave a commentPosted in Akka, Java

On all our previous example we have been using Tell┬ámethod to send messages to actors, in Akka this is known as fire-and-forget. Which means you send a message and there is no blocking, Actors, handle a separate thread to handle the actual work. But what happens when you need a return value? you pass a […]

Akka Immutable Messages

Posted on Leave a commentPosted in Akka, Java

By default Akka does not make your variables immutables, so if you are passing around message/objects with mutable variables there is still a case where you can experience a deadlock. That is why it is highly recommended to use immutable messages when integrating with Akka Actors. What are immutable messages? Basically these are variables that […]