-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question about performance tuning #72
Comments
In our case, both in load tests and production, performance was pretty much the same between Akka and Shardcake. So it may come from other factors/changes but it's hard to tell without knowing the code. Out of curiosity, were you using zio with akka? |
Wasn't there any bottleneck in communicating between pods via gRPC? I think performance of remote actor communication would be much better in akka, because they are using just TCP. |
gRPC is pretty fast, though not as fast as direct TCP. If you only measure the transport and your actors do nothing else, you might see a difference but in our case of a real world actor that does stuff, the difference was not significant. We had the exact same latency and throughput before and after. Note that if the transport layer speed is sensitive, you can implement your own by making your own implementation of the |
@ghostdogpr i've tried tracing about my RPC, and below is the result: ![]() The span |
Hmm that definitely looks wrong. |
I think #73 might have solved my issue. After applying |
Ohh that was it? I discovered recently with our own load test with zio 2 that zio-grpc had a severe performance issue, and that it was fixed in the latest snapshot. We're using zio 1 in prod so I wasn't aware of this at the time you sent the first message. Glad that it's resolved! |
Hello, I'm trying to migrate my project from akka-cluster to shardcake.
I finished migrating my code, and I'm comparing the overall performance of akka & shardcake, using K6.
I expected that there would not be any big difference in performance between these two library, but it seems that the performance when I use akka is about 4~5x better than when I use shardcake.
Is there any configuration that I should adjust further, or is this just shardcake's structural problem?
K6 test result
shardcake version:

akka version:

Infrastructure & Configuration about shardcake
The text was updated successfully, but these errors were encountered: