aws-sdk-go icon indicating copy to clipboard operation
aws-sdk-go copied to clipboard

SESv2 API should use `io.ReadSeeker` Data type in `RawMessage`

Open kayrus opened this issue 3 years ago • 0 comments

Describe the feature

Big emails (up to 40MB) consume a lot of memory. Considering that AWS SDK retries on errors, this data may last for a long time in memory. I'd suggest to convert sesv2.RawMessage.Data from []byte (see) to io.ReadSeeker (like in s3.PutObjectInput.Body see), or add an alternative way to achieve a "stream" way.

Use Case

Parallel processing of multiple heavy email bodies cause high memory usage.

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • [ ] I may be able to implement this feature request
  • [ ] This feature might incur a breaking change

SDK version used

general

Environment details (Version of Go (go version)? OS name and version, etc.)

general

kayrus avatar Jul 08 '22 07:07 kayrus