Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant