On Tue, Mar 29, 2016 at 7:09 PM, Mohammed Al-Mahfoudh < [email protected]> wrote:
> Could be related, if so, i may reference it :), would be great if you > published something about it to let me/us know about it. Would love to take > a look at your published work! > I'm not really planning on publishing anything beyond listing the repo in Akka's community libraries -- this is just a library that I found I wanted for my application. (Which is very Akka-heavy, and pretty complex.) > Neat solution for the ask patter! dose it scale as much/better as/than > Ask+Futures? > No catches there? performance hits? > There's a slight latency hit due to the loopback, but basically this *is* simply Ask+Pipe, with adapters for Future; performance-wise, it should be very close to the usual best practice in that regard. It's basically a Monad that encapsulates the notion of doing an ask, and piping it back to myself, setting "sender" to the original value so that it contains what you expect when you get to the end. There's an extra object allocation involved, but in the grand scheme of things I expect that to be a drop in the bucket. I use this *very* heavily in my production code -- I'm gradually standardizing on all my Actors being Requesters, so that I can use this pattern whenever I need it. It's not a panacea -- you do still need some discipline in order to stay within the invariant that Actor code should all run in the Actor's receive loop. But it does make it much *easier* to do complex stuff within that invariant... -- >>>>>>>>>> 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
