Skip to content

Skip response parsing for raw requests#1643

Merged
danielmitterdorfer merged 1 commit intoelastic:masterfrom
danielmitterdorfer:lazy-raw-response
Jan 4, 2023
Merged

Skip response parsing for raw requests#1643
danielmitterdorfer merged 1 commit intoelastic:masterfrom
danielmitterdorfer:lazy-raw-response

Conversation

@danielmitterdorfer
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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