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

Allow MAX_ALLOWED_ATTRIBUTES to be configurable #39

Open
cdarrigo opened this issue Aug 18, 2023 · 1 comment
Open

Allow MAX_ALLOWED_ATTRIBUTES to be configurable #39

cdarrigo opened this issue Aug 18, 2023 · 1 comment

Comments

@cdarrigo
Copy link

Messages may have more than 9 attributes, when using the attributes to pass context outside the message body (security, logging, additional context).

The max attribute count should be configurable, rather than a hardcoded constant.

@raol
Copy link
Owner

raol commented Jan 26, 2024

Hi @cdarrigo
I'm afraid the change you're proposing is not possible to implement. According to the sqs developer guide maximum number of attributes for an SQS message is 10. This package reserves 1 attribute as its own, to be able to pass S3 object handle in there. That leaves us with 9 allowed attributes max, as specified in the constants.

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

No branches or pull requests

2 participants