Reputation: 225
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?
Upvotes: 1
Views: 903
Reputation: 1117
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.
Upvotes: 1