Well the problem is that translating the whole framework into Scala just 
isn't going to happen. Battles have to be picked. However, the inability to 
use lambdas with Scala futures makes it VERY verbose to use with Java and 
error prone. Since I have to sell this on ease of use it makes it hard for 
me to push in Akka into the stack.  I need to have a way to make it easy 
for users to leverage the ASK pattern without re-teaching them all of how 
to use Scala futures and introducing nightmarish verbosity that we did away 
with when we went to Lambdas.

On Tuesday, August 4, 2015 at 6:05:38 PM UTC-5, Justin du coeur wrote:
>
> Yeah, that's my reaction as well.  ask() basically *is* a micro-Actor, and 
> is highly optimized for the purpose.  And while I can believe that it's 
> suboptimal for Java code, it's kind of hard to imagine anything that's 
> easier to use on the Scala side, since Futures allow you to compose complex 
> multi-Actor operations *really* easily.  Yes, there's a bit of learning 
> curve for Futures, but the payoff in terms of clean, maintainable code is 
> enormous...
>
> On Tue, Aug 4, 2015 at 2:14 PM, Jim Hazen <jimhaz...@gmail.com 
> <javascript:>> wrote:
>
>> http://letitcrash.com/post/96078609472/ask-tell-and-per-request-actors
>>
>> Maybe this will help answer your question.  Actors are cheap, but not 
>> free.  There are cases where using an actor-per-request pattern has more 
>> benefits than performance detractors.  Per method call?  I think that would 
>> depend on how often that method is called?  Per-request may be a better 
>> granularity.  If that request generates 100 method calls, then maybe you 
>> would notice actor overhead.  That said, the ask pattern uses an optimized 
>> actor per call as well, and is often used wherever a synchronous callback 
>> is needed.
>>
>> What would be the benefit of your "Micro Actor" over Akka's built in 
>> support for 'ask'?  I have a feeling that ask will be even more micro, due 
>> to internal optimizations not available to normal actors.
>>
>> -- 
>> >>>>>>>>>> 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+...@googlegroups.com <javascript:>.
>> To post to this group, send email to akka...@googlegroups.com 
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
>>>>>>>>>>      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 http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to