Re: [akka-user] Sending response back to sender from remote routee

2016-10-07 Thread Viktor Klang
happy hakking! On Fri, Oct 7, 2016 at 4:50 PM, Jegan wrote: > Thanks friends. I tried the options suggested by both of you. Both are > working great. > > On Friday, October 7, 2016 at 7:23:05 AM UTC-7, √ wrote: >> >> pipeTo >> >> On Fri, Oct 7, 2016 at 4:17 PM, Justin du

Re: [akka-user] Sending response back to sender from remote routee

2016-10-07 Thread Jegan
Thanks friends. I tried the options suggested by both of you. Both are working great. On Friday, October 7, 2016 at 7:23:05 AM UTC-7, √ wrote: > > pipeTo > > On Fri, Oct 7, 2016 at 4:17 PM, Justin du coeur > wrote: > >> This is kind of the number-one FAQ for Akka: you must

Re: [akka-user] Sending response back to sender from remote routee

2016-10-07 Thread Viktor Klang
pipeTo On Fri, Oct 7, 2016 at 4:17 PM, Justin du coeur wrote: > This is kind of the number-one FAQ for Akka: you must never, ever use > "sender" in the results of a Future. "sender" is only set *synchronously*, > while the receive method is running -- after that (in your

Re: [akka-user] Sending response back to sender from remote routee

2016-10-07 Thread Justin du coeur
This is kind of the number-one FAQ for Akka: you must never, ever use "sender" in the results of a Future. "sender" is only set *synchronously*, while the receive method is running -- after that (in your Future's onComplete), it's probably not set to anything, and *might* be set to something

[akka-user] Sending response back to sender from remote routee

2016-10-07 Thread Jegan
Hello Friends, I need your help in figuring out what is going wrong here. I have posted this question in SO too. I am using Akka Cluster (version 2.4.10) with few nodes designated for "front-end" role and few others as "workers". The workers are on remote machines. The incoming work is