Hi Boris,

Thanks for packing it in a reproducible sample. As Viktor points out the
Java serializer is one of the prime suspect for bottlenecks in remote
communication. Here you have found something that I think can be improved
in Akka remoting.

I can see that major time is consumed in EndpointWriter stashing and
unstashing messages. That happens when the transport can't write. Perhaps
some internal buffer is full. Please create a
ticket<http://doc.akka.io/docs/akka/current/project/issue-tracking.html>and
we will look into if we can improve the efficiency of this buffering
mechanism.

What you should do is to implement flow control in the application layer to
avoid producing faster than what can be consumed.

and also, implement a good serializer for your messages.

/Patrik


On Mon, Mar 24, 2014 at 1:58 AM, √iktor Ҡlang <[email protected]>wrote:

> Hello Boris,
>
> Then you are likely to benchmark the slowness of Java Serialization.
>
> To maximize performance, one needs to choose an appropriate serializer.
>
>
> On Mon, Mar 24, 2014 at 1:51 AM, Boris Capitanu <[email protected]> wrote:
>
>> Hello Viktor,
>>
>> I am using whatever default serializer Akka comes with.  I have not
>> configured anything special for that.
>>
>> -Boris
>>
>> --
>> >>>>>>>>>> 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,
> √
>
> * ——————— **Viktor Klang*
> *Chief Architect - **Typesafe <http://www.typesafe.com/>*
>
>  Twitter: @viktorklang
>
> --
> >>>>>>>>>> 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.
>



-- 

Patrik Nordwall
Typesafe <http://typesafe.com/> -  Reactive apps on the JVM
Twitter: @patriknw

-- 
>>>>>>>>>>      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