don't know really. I take my words back :)  what you wrote makes perfect 
sense. thanks

On Wednesday, October 18, 2017 at 8:25:42 PM UTC+3, Rob Crawford wrote:
>
> What do you believe he meant?
>
> On Wednesday, October 18, 2017 at 11:09:45 AM UTC-4, AL wrote:
>>
>> Thanks, 
>> The scala API is different. but I am not sure that this is what he meant
>>
>> On Tuesday, October 17, 2017 at 4:34:17 PM UTC+3, Rob Crawford wrote:
>>>
>>> With the Java API, something like this:
>>>
>>> public class ComputeIntensiveChild extends AbstactActor {
>>> private final ActorRef realParent;
>>>
>>> public static Props create(ActorRef realParent) {
>>>     return Props.create(ComputeIntensiveChild.class, realParent);
>>> }
>>>
>>> public ComputeIntensiveChild(ActorRef realParent) {
>>>     this.realParent = realParent;
>>> }
>>>
>>> public Receive createReceive() {
>>> ...
>>> }
>>>
>>> }
>>>
>>> This way you send the answer to realParent instead of 
>>> getContext().getParent(). Even if there's a router between the child and 
>>> realParent, the intended recipient gets the message.
>>>
>>> BUT I'm not sure this isn't a premature optimization. Since there's a 
>>> possibility of a router in the mix, that means the child is sending a 
>>> response to a message it received. In that case, just 
>>> send the response to the sender -- routers always forward messages, 
>>> preserving the original sender. 
>>>
>>> On Sunday, October 15, 2017 at 10:50:43 AM UTC-4, AL wrote:
>>>>
>>>> Reading tuning akka dispatchers 
>>>> <http://letitcrash.com/post/40755146949/tuning-dispatchers-in-akka-applications>
>>>>  article 
>>>> by Jami allan. he writes:
>>>>
>>>>
>>>> If you suspect you will need to use a Router somewhere, Akka Team Lead 
>>>> Roland Kuhn recommends that you pass around actor references from 
>>>> supervisors to compute-intensive children so that the ‘context.parent’ of 
>>>> their children are free to become a router later on with minimal impact. 
>>>> But do not create Routers before you have proven at runtime under load 
>>>> that 
>>>> you absolutely need to.
>>>>
>>>> can anyone elaborate on that with a simple example ? 
>>>>
>>>> Thanks in advance
>>>>
>>>>

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to