Skip to content

GRPC Streaming: Send diff instead of full response#4062

Merged
joe-elliott merged 3 commits intografana:mainfrom
joe-elliott:remove-final-msg
Sep 6, 2024
Merged

GRPC Streaming: Send diff instead of full response#4062
joe-elliott merged 3 commits intografana:mainfrom
joe-elliott:remove-final-msg

Conversation

@joe-elliott
Copy link
Copy Markdown
Collaborator

@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 <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
Signed-off-by: Joe Elliott <number101010@gmail.com>
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