How to upload small files to Amazon S3 efficiently in Python

后端 未结 3 1967
星月不相逢
星月不相逢 2021-01-31 11:54

Recently, I need to implement a program to upload files resides in Amazon EC2 to S3 in Python as quickly as possible. And the size of files are 30KB.

I have tried some

3条回答
  •  不要未来只要你来
    2021-01-31 12:24

    I have the same problem as You. My solution was send the data to AWS SQS and then save them to S3 using AWS Lambda.

    So data flow looks: app -> SQS -> Lambda -> S3

    Entire process is asynchronous, but near real-time :)

提交回复
热议问题