aspecto-io / sns-sqs-big-payload

Amazon SNS/SQS client library that enables sending and receiving messages with payload larger than 256KiB via Amazon S3.
Apache License 2.0
50 stars 17 forks source link

Coud you add s3key prefix in SqsProducer and SnsProducer class #37

Open fymaterials98 opened 3 years ago

fymaterials98 commented 3 years ago

To whom it may concern, You code is helpful. It may give the user more flexibility if user can define which directory in s3 bucket she/he can upload the files to. May I suggest to add private s3BucketPrefix: string; this.s3BucketPrefix = s3BucketPrefix; to SqsProducer and SnsProducer class

in PublishJson or SendJson function, modify payloadKey const payloadKey = ${this.s3BucketPrefix}/${payloadId}.json;

Regards, Arthur