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

Skip response parsing for raw requests #1643

Merged

Conversation

danielmitterdorfer
Copy link
Member

With this commit we skip response parsing for raw requests. As users might leverage the raw-request operation type for any kind of request, it is possible that it produces arbitrarily large responses, which might introduce client-side bottlenecks. As we don't inspect the response body, we might as well just use the raw response internally and avoid an accidental bottleneck due to response parsing.

With this commit we skip response parsing for raw requests. As users
might leverage the `raw-request` operation type for any kind of request,
it is possible that it produces arbitrarily large responses, which might
introduce client-side bottlenecks. As we don't inspect the response
body, we might as well just use the raw response internally and avoid an
accidental bottleneck due to response parsing.
@danielmitterdorfer danielmitterdorfer added enhancement Improves the status quo :Load Driver Changes that affect the core of the load driver such as scheduling, the measurement approach etc. labels Jan 3, 2023
@danielmitterdorfer danielmitterdorfer added this to the 2.7.1 milestone Jan 3, 2023
@danielmitterdorfer danielmitterdorfer self-assigned this Jan 3, 2023
Copy link
Contributor

@michaelbaamonde michaelbaamonde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reasoning makes sense to me. Thanks @danielmitterdorfer!

@danielmitterdorfer
Copy link
Member Author

Thanks!

@danielmitterdorfer danielmitterdorfer merged commit f9ceb8d into elastic:master Jan 4, 2023
@danielmitterdorfer danielmitterdorfer deleted the lazy-raw-response branch January 4, 2023 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improves the status quo :Load Driver Changes that affect the core of the load driver such as scheduling, the measurement approach etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants