Skip to content
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

Optimize jsonrpc request throughput #222

Open
edubart opened this issue Apr 2, 2024 · 0 comments · May be fixed by #240
Open

Optimize jsonrpc request throughput #222

edubart opened this issue Apr 2, 2024 · 0 comments · May be fixed by #240
Assignees
Labels
enhancement New feature or request optimization Optimization

Comments

@edubart
Copy link
Contributor

edubart commented Apr 2, 2024

Context

Currently these are some numbers of very lightweight advance requests (without forks) made through local/jsonrpc/grpc machines:

local 2819.05 req/s
jsonrpc 491.62 req/s
grpc 69.71 req/s

Local is way faster than jsonrpc, jsonrpc adds the overhead of:

  • Networking
  • Establishing a new connection for every machine method call
  • JSON serialization/deserialization

Possible solutions

We can optimize jsonrpc requests during a remote machine session by using keep alive connections, if that is not enough, we should also investigate if there are simple ways to optimize the serialization or networking.

@edubart edubart added enhancement New feature or request optimization Optimization labels Apr 2, 2024
@edubart edubart self-assigned this Apr 5, 2024
@edubart edubart linked a pull request Apr 29, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request optimization Optimization
Projects
Status: PR Available
1 participant