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

Question: stream from an S3 obj, transform the stream, then stream to another S3 obj #343

Closed
ababkin opened this issue Dec 18, 2016 · 8 comments

Comments

@ababkin
Copy link

@ababkin ababkin commented Dec 18, 2016

all in constant space - is this possible and if so, how? (i could not figure it out)

Thanks!

@axman6
Copy link
Contributor

@axman6 axman6 commented Dec 18, 2016

What problems are you running into? RsBody provides a ResumableBody and RqBody can take a Producer, and it should be possible to compose those together.

@axman6
Copy link
Contributor

@axman6 axman6 commented Dec 18, 2016

Uh, ResumableSource

@ababkin
Copy link
Author

@ababkin ababkin commented Dec 18, 2016

@axman6
Copy link
Contributor

@axman6 axman6 commented Dec 18, 2016

Are you modifying the data at all? There is also a CopyObject command if you aren't.

@ababkin
Copy link
Author

@ababkin ababkin commented Dec 18, 2016

Yes, modify data / transform / expand / reduce the stream

@axman6
Copy link
Contributor

@axman6 axman6 commented Dec 18, 2016

Looks like you want the Multipart API, see CreateMultipartUpload and UploadPart. It'd be nice to have a lightly easier API for this where you can just stream data into a Sink and it'd handle everything.

@ababkin ababkin closed this Dec 18, 2016
@axman6
Copy link
Contributor

@axman6 axman6 commented Dec 20, 2016

@ababkin you got me interested in this problem, so I started work on http://github.com/axman6/amazonka-s3-streaming. it's probably pretty immature, given it's had about 6 hours work done on it, but it can upload files by streaming them to a conduit Sink.

@ababkin
Copy link
Author

@ababkin ababkin commented Dec 20, 2016

@axman6 This is great, I'll take a look
thanks for letting me know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants