Re: [akka-user] Forwarding an Ask while intercepting the result

2016-05-10 Thread Ian Clegg
Hi Justin, First off, many thanks for taking a look and the feedback. Requester looks very promising, i'm looking over the sources now. In some respects i'm lucky my problem is quite straightforward . Its clear that in the general case addressed by Requester, this is a not a trivial problem -

Re: [akka-user] Forwarding an Ask while intercepting the result

2016-05-09 Thread Justin du coeur
Frankly, your code looks about right -- if this is a one-off situation, it's likely a good enough approach. You could also use pipeTo, but you'd have to inject the originalSender into the communication, so I suspect it would come out about equally complicated. I wouldn't normally talk up the

[akka-user] Forwarding an Ask while intercepting the result

2016-05-09 Thread Ian Clegg
Hi everyone, I'm looking for some advice. I have an actor whose state needs to be updated via a HTTP request. I'm using Akka HTTP with the Route DSL and an Ask pattern (this seems to be 'normal') onComplete(*broker ?* *UpdateCommand*(id, "something")) { case *Success*(u) =>