Having a Await.result (blocking) inside your receive method will kill your
performance.
On Thursday, May 14, 2015 at 2:19:30 PM UTC-4, Andrew Gaydenko wrote:
>
> On Thursday, May 14, 2015 at 8:46:27 PM UTC+3, Patrik Nordwall wrote:
>>
>> If there are no relationship (no ordering) between the future result and
>> other incoming messages you can just use pipe, without stash.
>>
>
> Let's assume at the moment we have:
>
> def receive = {
> case Msg(data) =>
> def job = callReturningFuture(data)(context.dispatcher)
> Await.result(job, 1000.millis)
> }
>
> What is the suggestion?
>
>
--
>>>>>>>>>> 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.