dvla / sqs-extended-client

A library for managing AWS SQS message payloads using S3, in particular payloads larger than the 256KB SQS limit
MIT License
10 stars 12 forks source link

Attribute to flag S3 used #5

Open sl2000 opened 2 years ago

sl2000 commented 2 years ago

Library is fab thanks.

It's using a string attribute 'S3MessageBodyKey’ to flag messages as using S3. This is different to the Java client which uses a numeric attribute 'ExtendedPayloadSize’ (with a legacy 'SQSLargePayloadSize'). Any reason for your choice? I need to be compatible with a Python client (https://github.com/timothymugayi/boto3-sqs-extended-client-lib) which uses 'SQSLargePayloadSize'. Happy to have a go at coding up the change.

ruscon commented 10 months ago

Java and Python versions support both attributes, in node should be the same.