Skip to content

Can HTTP/2 multi-stream speed up downloading with Hyper? #3537

Answered by dswij
OldMansKid asked this question in Q&A
Discussion options

You must be logged in to vote

Or a more straightforward question, will it be faster to download large files that support range requests with multiple HTTP/2 streams?

No. And I think you have a bit of a misunderstanding on the advantage of HTTP/2. It is not multi-threading, but multiplexing on a single connection. Basically, it allows responses to be streamed out-of-order when making multiple requests, and this advantage can be taken of by the server (i.e. processing some requests, while also sending responses to the others).

Speed of downloading large file would mostly depend on network speed.

but I wonder if Hyper interleaves frames

Yes, the HTTP/2 implementation of hyper sends data frames of different streams "i…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@OldMansKid
Comment options

@dswij
Comment options

Answer selected by OldMansKid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants