Skip to content

Conversation

@akbarsigit
Copy link

@akbarsigit akbarsigit commented Oct 7, 2025

Issue #, if available:

Description of changes:
This PR adds support for sending and receiving messages as streams to avoid OOM as the current implementation loads large payloads entirely into memory. With after some quick test, this stream can reduce 60%-70% ish memory usage with 1GB payload compared to the current implementation

Changes:

  • Adjust sync and async AmazonSQSExtendedClient to use the new multipart S3BackedStreamPayloadStore (Implementation still in PR)
  • Adds multipart configuration
  • Adds unit tests.

This change enables stream support using payload offloading java common lib. I have a companion PR for that repo if we want to approve this PR. Related PR (awslabs/payload-offloading-java-common-lib-for-aws#62)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@akbarsigit akbarsigit marked this pull request as draft October 8, 2025 08:40
@akbarsigit akbarsigit changed the title Add multipart support in uploading to S3 Add support for s3 send and receive stream message Oct 10, 2025
@akbarsigit akbarsigit changed the title Add support for s3 send and receive stream message Add support for s3 send and receive using stream message Oct 10, 2025
@akbarsigit akbarsigit marked this pull request as ready for review October 10, 2025 02:54
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.

1 participant