Enabling ChecksumMode when calling getObject increases the response time #6497
Labels
feature-request
New feature or enhancement. May require GitHub community feedback.
p2
This is a standard priority issue
queued
This issues is on the AWS team's backlog
Describe the feature
Enabling ChecksumMode when calling getObject increases the response time.
This happens as the response stream is consumed for validating the checksum during the API call.
This was done in #5043 to ensure that checksum validation error is thrown during the API call and an error is thrown. However, since we return a stream, the checksum validation should be delayed till stream is consumed by the callee.
Use Case
Test case
API call times compared with file size/repeatations
The numbers will differ depending on your network speed, but the difference will remain
Proposed Solution
Write a checksum stream wrapper class which consumes the stream for validation. only when end user consumes it.
Other Information
No response
Acknowledgements
SDK version used
3.654.0
Environment details (OS name and version, etc.)
v20.10.0
The text was updated successfully, but these errors were encountered: