Re: [akka-user] Re: Akka Concurrency - Trying to call actors in parallel from an actor

2018-02-09 Thread Konrad “ktoso” Malawski
Hi Rob, ask is not the problem. The Await’s shown in the above code are. Ask is not blocking, and sometimes perfectly fine. Using Await is an anti pattern in general, but in Actors and other reactive things is where it’s really bad. Please read this section of the docs that shows what blocking ca

[akka-user] Re: Akka Concurrency - Trying to call actors in parallel from an actor

2018-02-09 Thread Rob Crawford
Don't use ask() -- you're blocking for no reason. Just tell() the other two actors, and finish what you can with the information you have. Then, when the responses from those two actors come in, do what you can with that information. Jonas and Viktor wrote an article for O'Reilly where they sai