Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
djha-skin
· 4y ago · 0 comments
Just in time, I've been needing to implement s3 upload asynchronously.
Comments
[–]
xtreak29
4y ago
Does aioboto3 help here?
https://aioboto3.readthedocs.io/en/latest/usage.html#upload
[–]
RantyDave
4y ago
I did it through 'multiprocessing' and a Pipe. Works fine but challenging shutting everything down when the child process throws an exception.
[–]
PyWoody
4y ago
Are you sure it's worth the complexity? Threads will drop the GIL for the duration of the network bound I/O .
[–]
djha-skin
OP
4y ago
Good point!