Re:Downloading files from S3 with multithreading and Boto3
by Galanwe on Saturday April 10, 2021 @09:54PM
(#26766916)
That's what my small python package does (https://github.com/NewbiZ/s3pd). Definitely not perfect (not saturating cores because no use of event loop per process) but download is split in multiple processes and stored in shared memory.
I've been able to saturate 20GB NICs on Ec2 with it (32 cores)
Re:Downloading files from S3 with multithreading and Boto3
by killingtime74 on Sunday April 11, 2021 @06:42AM
(#26769292)
You just described Apache Spark
My favorite version of this is when you start to use shared memory of some fashion to move terabytes of data from S3 to EC2 to work on it without ever hitting a disk.
Not for everyone, and for sure many times the extra milliseconds saved won't matter, but sometimes you really do need to get hundreds of gigabytes or terabytes of data moved as quickly as possible.