-
Notifications
You must be signed in to change notification settings - Fork 113
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
RPC call over TCP is expensive!! #92
Comments
I don't have the time to look into this right now, but a more efficient implementation should be possible and you are most welcome to provide a hopefully backwards-compatible pull request with your ideas/requirements. |
Bumping this issue as I find that sometimes keepalive is a requirement when the RPC server keeps session information associated with each TCP connection. In that way, it no longer works if each time we have to start a new connection. |
This issue has been referenced from an important section in the README: https://github.com/tedeh/jayson#what-is-the-recommended-way-to-use-jayson |
You are right. Then this is purely a consideration on efficiency. Submitted a PR implementing this. |
I did a packet analysis and found that RPC call over TCP is too expensive. It cost 12 packets to perform each call when in fact it could simply leverage TCP keep-alive. RPC call should be less expensive than REST API call. Please fix this. Cheers.
The text was updated successfully, but these errors were encountered: