My advice: Measure :)

On Mon, Sep 8, 2014 at 1:56 PM, Johannes Berg <[email protected]> wrote:

> Hi!
>
> From the documentation (
> http://doc.akka.io/docs/akka/snapshot/scala/actors.html) I can read the
> following about Patterns.ask;
>
> There are performance implications of using ask since something needs to
>> keep track of when it times out, there needs to be something that bridges a
>> Promise into an ActorRef and it also needs to be reachable through
>> remoting. So always prefer tell for performance, and only ask if you
>> must.
>
>
> So now I'm wondering when to use it or not. For example if I'm adding an
> item to the database through a remote actor from a web dashboard and want
> to show a message if it was successful or not, is that a good place to use
> Patterns.ask or should I think of some other way of doing request-response?
>
> --
> >>>>>>>>>> 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 http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Cheers,
√

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

Reply via email to