May 2017
Intermediate to advanced
414 pages
13h
English
We used akka.routing.RoundRobinPool to implement a RoundRobinPool of five actors. In the application, we sent five messages to the actor. Each goes to a different actor, one by one, in a loop.
So after every five messages, the new message goes to the first actor in the loop. However, you would see the output is different: actor e processed the message before actor d and c did. This is because actor e got the thread for execution earlier than d or c.
Read now
Unlock full access