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

Add gRPC initial win size of 4MB for less latency #514

Merged
merged 1 commit into from Jan 10, 2023

Conversation

emadolsky
Copy link
Contributor

@emadolsky emadolsky commented Jan 10, 2023

The default behavior of go-grpc is to use BDP and update the window accordingly. The default initial window in this mode is 64KB.
However, 64KB is way smaller than our desired window size and this probably causes more time needed for streams to reach the desired size. So, we expect to see faster responses for our big messages (majorly renders).
We have seen that the streaming phase of gRPC render requests are slower than their counterpart in HTTP, which lead to this tuning.
This PR proposes a big initial window (4MB) to reduce the latency observed while using gRPC comparing to HTTP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants