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

worth extending protocol to define GET (download)? #74

Closed
jokeyrhyme opened this issue Sep 28, 2015 · 2 comments
Closed

worth extending protocol to define GET (download)? #74

jokeyrhyme opened this issue Sep 28, 2015 · 2 comments

Comments

@jokeyrhyme
Copy link

I had a brief look, but couldn't find a discussion of downloading a large file in parallel, resumable chunks.

I have a use case that may involve passing large confidential blobs back and forth between the client and server. Before I found tus, I was considering using https://github.com/feross/webtorrent .

Upload bandwidth does seem more precious than download bandwidth, but I wonder if there wouldn't be some benefit to addressing the same concerns for both directions.

I imagine getting downloads to work would require any client-side solution to define a storage adapter, so that an official storage-agnostic download algorithm could keep identify missing / corrupted chunks, etc.

@kvz
Copy link
Member

kvz commented Sep 28, 2015

Thanks, that's an interesting question. tus so far is focussed on solving the problem of unreliable file uploads. Bandwidth is like you said smaller, and there's a risk that if the upload breaks, the content will never make it to "the internet". Whereas typically, downloads profit from higher bandwidth, and can be retried at any time because they already are on highly available server infra.

I think HTTP/1.1 should allow you to retry where you left off using the Range header. And I think this can also be used to download parallel chunks. I think programs such as GetRight 😱 or aria2 used to leverage this since the very early days already.

While I agree that leaves something to be desired regarding e.g. checksums and standardization, I also think the status quo is much less problematic - and it's probably not worth complicating our protocol and all its implementations over. With a dash of more certainty I can say: at least not for the 1.0.

Welcoming other thoughts though

@Acconut
Copy link
Member

Acconut commented Sep 28, 2015

We had this discussion previously and came to the conclusion that tus (currently) focuses on providing a solution for upload and not download content. I can't add a lot to @kvz's response since he mentioned all the relevant points. :)

You can read more in the end of the thread in #13.

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

3 participants