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

Use intermediate chan to expedite gRPC render cache #522

Conversation

emadolsky
Copy link
Contributor

Before this commit, render responses were cached when the whole response was streamed to the client. This caused slowing requests waiting for that cache to be populated. Now, by using an intermediate channel when caching is enabled, we do not wait until the request is streamed.

carbonserver/render.go Outdated Show resolved Hide resolved
carbonserver/render.go Outdated Show resolved Hide resolved
carbonserver/render.go Outdated Show resolved Hide resolved
carbonserver/render.go Outdated Show resolved Hide resolved
Emad Mohamadi added 2 commits February 8, 2023 16:32
Before this commit, render responses were cached when the whole
response was streamed to the client. This caused slowing requests
waiting for that cache to be populated. Now, by using an
intermediate channel when caching is enabled, we do not wait until
the request is streamed.
@emadolsky emadolsky force-pushed the emadolsky/use-intermediate-channel-to-cache-grpc-render-faster branch from 1d702c5 to 256be79 Compare February 8, 2023 15:34
@emadolsky emadolsky merged commit ee457ce into master Feb 8, 2023
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.

2 participants