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

GRPC Streaming: Send diff instead of full response #4062

Merged
merged 3 commits into from
Sep 6, 2024

Conversation

joe-elliott
Copy link
Member

@joe-elliott joe-elliott commented Sep 6, 2024

What this PR does:
This change impacts all streaming endpoints. Instead of returning a complete final message this has the query frontend send only a final diff. For searches with very large limits and span limits we were seeing enormous final messages returned to Grafana which tripped a limit in their websocket implementation.

The initial intention of sending the final message was to make sure the frontend got a complete response in case one of the intermediate messages was lost due to a bug. This seems to be unlikely and the rare case it does happen is not worth the cost of always sending the full response all the time.

cc @adrapereira

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Signed-off-by: Joe Elliott <[email protected]>
Signed-off-by: Joe Elliott <[email protected]>
@joe-elliott joe-elliott merged commit 7421936 into grafana:main Sep 6, 2024
16 checks passed
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