I have an akka 2.0 round-robin router. Now I need to broadcast a message to all routees and await the answers from all of them. I did not found a way to do so yet. First I had a list of actors that I passed to the router, but now I need to load them from my application.conf. Is there a way to await all messages of a Broadcast? It would be fine as well if I could get the number of routees from the conf flie.
If you know the number of routees, then you would normally just count the number of answers received. However, you may want to account for a timeout, especially if your actors are running distributed because there is no guarantee that messages really get delivered.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With