amazon-sqs-net-extended-client-lib icon indicating copy to clipboard operation
amazon-sqs-net-extended-client-lib copied to clipboard

Allow MAX_ALLOWED_ATTRIBUTES to be configurable

Open cdarrigo opened this issue 1 year ago • 1 comments

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.

cdarrigo avatar Aug 18 '23 18:08 cdarrigo

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.

raol avatar Jan 26 '24 00:01 raol