简体   繁体   中英

performance of akka remote

I am using the akka-sample-remote sample to do some performance test. Seems the time for the roundtrip is 3ms now. which includes (two actor in two jvm in the same host using localhost).

1 A->B: send a MathOp request 2 B->A: send back the result

I suspect most of the time is spent on the serialization. But not sure. anyone have any suggestion how could I improve the performance further? Is it really the serialization that takes most of the time. Since they are on the same host. So I assume the network should not take much time?

Why do you think that this is bad number?

Do not mix latency and throughput. Single-threaded system which has throughput 60k items per second does not have latency 1000/60k ms.

I've used Redis which is single-threaded app and it's able to consume ~100k messages per second but with 500+ concurrent connections. It does not provide nanosecond latency as it could see at first glance.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM