May 2017
Intermediate to advanced
414 pages
13h
English
We used akka.routing.SmallestMailboxPool to implement the SmallestMailboxPool of five actors. In the application, we sent five messages to the actor. Each message goes to a different actor.
To verify that the message goes to the smallest mailbox actor, we have to implement a custom mailbox to track which actor has the smallest number of messages in its mailbox, and send some more messages to the router.
Read now
Unlock full access