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

HTTP/2 #153

Closed
akircher opened this issue Jan 25, 2019 · 2 comments
Closed

HTTP/2 #153

akircher opened this issue Jan 25, 2019 · 2 comments

Comments

@akircher
Copy link

akircher commented Jan 25, 2019

Forgive me if this is already been discussed or I am wrong, but is there a reason that Deno HTTP (and Websockets) are based on HTTP/1. Everything else in Deno seems so modern, it seems weird to support the old standard and not HTTP/2. Maybe this is already on the roadmap?

Obviously biased article supporting this viewpoint:
https://medium.com/@pgjones/http-1-should-die-81b7588d617e

@ry
Copy link
Member

ry commented Jan 25, 2019

We are slightly in limbo regarding the HTTP server. Currently we have this one implemented in TypeScript but it's slow. I have attempted to build a native version which would use Rust's HTTP/2 libs but due to [technical reasons] it was not fast enough.

I am currently optimistic that the TypeScript HTTP server can be made fast. We think our bottleneck is in the central way that Deno sends and receives messages to V8 (the "calling convention"). @piscisaureus is actively working on a new version of this - we should have an idea soon (~1-2 weeks) if the current TypeScript implementation will be fast enough or if we need to go to native Rust again.

Once we understand these performance problems better, we will either attempt to implement HTTP/2 in TypeScript or we will return to using Rust's Hyper which already supports it.

We are also interested in implementing the ability to use QUIC. But that is a ways off still.

@akircher
Copy link
Author

Thanks for the detailed and thoughtful response! For HTTP/3 and QUIC in RUST this library looks interesting
https://blog.cloudflare.com/enjoy-a-slice-of-quic-and-rust/

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