On Wed, Jan 15, 2014 at 12:20 PM, Pratik Mehta <[email protected]> wrote:

> Hi Bjorn,
>
> Thanks for your reply. Let me explain the exact flow:
> From System2:2552
>
> masterWorkerRouter.tell(message, null) // I am not expection any response
>
> Behavior of Actor:
> MasterActor (this actor is has the ActorRef for computeWorkerRouter through
> constructor)
> execute(Object message)
> {
>     format(message);
>     computeWorkerRouter.tell(message, getSelf());
> }
>
> WorkerActor
> execute(Object message)
> {
>         doSomeWork(message);
>         print(message)
> }
>
> So my exact Deployment looks like:
> System2:2552 has computeWorkerRouter and masterWorkerRouter
> System1:2551 has instance of MasterActor and 5 instance of WorkerActor
> System2:2551 has 5 instance of WorkerActor
>
> Expected message flow:
>
> System2:2552(masterWorkerRouter) --> System1:2551(MasterActor) -->
> WorkerActor(on System1:2551 or System2:2552 based on Routing Logic)
>
> The message flow seen in Akka:
>
> System2:2552(masterWorkerRouter) --> System1:2551(MasterActor) -->
> computeActorRouter(on System2:2552) --> WorkerRouter (on System1:2551 or
> System2:2552 based on Routing Logic)
>
> As per the description of Routers in documents, ActorRef for Routers
> should be able to route the messages directly to routees.
>

Directly to routees only means that it will not have to be enqueued into
the routers mailbox, not that it isn't sent to the router, which
immediately routes it to its routee.

Cheers,
√


>
> Regards,
> Pratik
>
>
>
>  --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ: http://akka.io/faq/
> >>>>>>>>>> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Cheers,
√

*Viktor Klang*
*Director of Engineering*
Typesafe <http://www.typesafe.com/>

Twitter: @viktorklang

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: http://akka.io/faq/
>>>>>>>>>>      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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to