Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Possible to support AsynchronousFileChannel? #72

Open
jvz opened this issue Mar 16, 2017 · 1 comment
Open

Possible to support AsynchronousFileChannel? #72

jvz opened this issue Mar 16, 2017 · 1 comment

Comments

@jvz
Copy link

jvz commented Mar 16, 2017

This API might mesh better with multipart file uploads. Each ByteBuffer written can be mapped to an UploadPartRequest. Closing the channel can complete the upload, and the CompleteMultipartUploadResult returned from the S3 API can be used to cache file attribute information for the newly uploaded file.

Similarly, asynchronous downloads can be supported here, though I'm not sure on the corresponding APIs in S3.

@jvz
Copy link
Author

jvz commented Mar 17, 2017

I had another thought: supporting GatheringByteChannel could also be used to parallelize the upload into chunks as well. This could make it simpler to use with APIs like ByteBuf in Netty.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant