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

Integrate large payload support for SQS #2116

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

auvipy
Copy link
Member

@auvipy auvipy commented Sep 18, 2024

This adds support for handling large payloads in SQS. The 'sqs_extended_client' is imported and utilized for fetching file from S3 as payload when necessary.

As Kombu asynchronously fetches new messages from the queue, not using the standard boto3 APIs, we have to manually fetch the s3 file, rather than rely on the sqs_extended_client to perform that action

Relates to: #279

@kgwangehee
Copy link

Hello,

Do you have any roadmap or due date to integrate this feature to support large message which more than 256kb(in SQS Message Broker)

This adds support for handling large payloads in SQS. The 'sqs_extended_client' is imported and utilized for fetching file from S3 as payload when necessary.

As Kombu asynchronously fetches new messages from the queue, not using the standard boto3 APIs, we have to manually fetch the s3 file, rather than rely on the sqs_extended_client to perform that action

Relates to: celery#279
The try/except block was triggering when sqs_extended_client isn't installed, which results in boto being overwritten with None
@Amwam Amwam force-pushed the add-sqs-large-payload-support branch from ca4eb4b to 2d1f691 Compare November 13, 2024 11:29
@Amwam Amwam force-pushed the add-sqs-large-payload-support branch from f9a0f71 to 2fa40f4 Compare December 3, 2024 16:21
Copy link

codecov bot commented Dec 3, 2024

Codecov Report

Attention: Patch coverage is 36.36364% with 21 lines in your changes missing coverage. Please review.

Project coverage is 79.34%. Comparing base (a0175b0) to head (39844fc).

Files with missing lines Patch % Lines
kombu/transport/SQS.py 16.00% 21 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2116      +/-   ##
==========================================
- Coverage   81.50%   79.34%   -2.17%     
==========================================
  Files          77       77              
  Lines        9524     9555      +31     
  Branches     1152     1155       +3     
==========================================
- Hits         7763     7581     -182     
- Misses       1569     1806     +237     
+ Partials      192      168      -24     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@auvipy
Copy link
Member Author

auvipy commented Dec 23, 2024

Coverage needs to be improved

Amwam added 3 commits January 24, 2025 16:50
Introduce two tests to verify S3 client creation behavior: one for insecure connections and another for custom endpoint usage. This ensures proper configuration of boto3 client initialization in these scenarios.
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.

3 participants