How to upload small files to Amazon S3 efficiently in Python

后端 未结 3 1927
星月不相逢
星月不相逢 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:21

    Sample parallel upload times to Amazon S3 using the Python boto SDK are available here:

    • Parallel S3 Uploads Using Boto and Threads in Python

    Rather than writing the code yourself, you might also consider calling out to the AWS Command Line Interface (CLI), which can do uploads in parallel. It is also written in Python and uses boto.

提交回复
热议问题