简体   繁体   English

Amazon SQS 扩展客户端库是否支持在 S3 中压缩上传的文件?

[英]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.我试图弄清楚 Amazon SQS 扩展客户端库是否支持在 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.这个想法是在消息请求中告诉 SQS 作为 Zip 存储在 S3 中。 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 /); 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 S3中的文件/); This example is in Java but I know there are implementations of the extended client library also for Nodejs and python.此示例在 Java 中,但我知道 Nodejs 和 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.https://github.com/awslabs/amazon-sqs-java-extended-client-lib/blob/master/src/main/java/com/amazon/sqs/javamessaging/AmazonSQSExtendedClient 探索了 AmazonSQSExtendedClient 的源代码之后。 java原来它使用 PayloadStore - https://github.com/awslabs/payload-offloading-java-common-lib-for-aws/blob/master/src/main/java/software/amazon/payloadoffload .java接口方法storeOriginalPayload没有设置zip行为的参数。 The implementing class S3BackedPayloadStore does not show any evidence of zipping either.实施 class S3BackedPayloadStore 也没有显示任何压缩证据。 So my conclusion is that this functionality is currently not implemented.所以我的结论是这个功能目前还没有实现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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