Re: [akka-user] Best way to deal with Actors that integrate other Actor Data?

2016-06-24 Thread Justin du coeur
Keep in mind, ask() is pretty optimized -- it's creating pseudo-Actors under the hood, but as I understand it they're a bit lighter-weight than creating ordinary Actors. So I wouldn't necessarily count on your own Actor being more efficient. The per-request Actor may be the right way to go

Re: [akka-user] Best way to deal with Actors that integrate other Actor Data?

2016-06-23 Thread Martynas Mickevičius
Hi, in the short term actor situation that you described (these are sometimes also called per-request actors), you can send to the short term actor something, that lets you complete the original request that arrived to the endpoint. I do not know what you are using for handling requests, but

[akka-user] Best way to deal with Actors that integrate other Actor Data?

2016-06-22 Thread kraythe
Lets say I create an actor that will serve JSON to an end user but that actor returning the OverviewJson has to get data from three different actors and wait for them all to return a response before proceeding. Now I could create an actor that uses the ask patter to call all three other actors