简体   繁体   中英

Does Amazon SQS Extended Client Library support zipping of uploaded file in S3?

I am trying to figure out if Amazon SQS Extended Client Library supports zipping of uploaded file in S3. I Googled quite a lot but found no evidence of such support. The idea is to tell SQS in the message request to store in S3 as a Zip. So looking in the Java example https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-s3-messages.html , it would be something like sqsExtended.sendMessage(myMessageRequest, true / a parameter telling to zip the file in S3 /); This example is in Java but I know there are implementations of the extended client library also for Nodejs and python. Does anyone know if there is such support or if such support is intended to be added?

After exploring the source code for AmazonSQSExtendedClient at https://github.com/awslabs/amazon-sqs-java-extended-client-lib/blob/master/src/main/java/com/amazon/sqs/javamessaging/AmazonSQSExtendedClient.java it turns out that it uses PayloadStore - https://github.com/awslabs/payload-offloading-java-common-lib-for-aws/blob/master/src/main/java/software/amazon/payloadoffloading/PayloadStore.java The interface method storeOriginalPayload has no parameter for setting zip behavior. The implementing class S3BackedPayloadStore does not show any evidence of zipping either. So my conclusion is that this functionality is currently not implemented.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM