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

Add HTTP2 (and HTTP3) support in NGINX containers #2608

Open
maxpatiiuk opened this issue Dec 13, 2022 · 4 comments
Open

Add HTTP2 (and HTTP3) support in NGINX containers #2608

maxpatiiuk opened this issue Dec 13, 2022 · 4 comments
Assignees
Labels
1 - Request Improvements or extensions to existing behavior type:meta DevOps and workflow related
Milestone

Comments

@maxpatiiuk
Copy link
Member

These will bring performance improvements and future-proofing

Enabling them in dev containers and production containers would be great

@maxpatiiuk maxpatiiuk added 1 - Request Improvements or extensions to existing behavior pri:unknown labels Dec 13, 2022
@maxpatiiuk maxpatiiuk added this to Unsorted in DevOps & Housekeeping via automation Dec 13, 2022
@CarolineDenis
Copy link
Contributor

Cannot be used without HTTPS,
=> #2607
not wise to have different environments between development and production.

@maxpatiiuk
Copy link
Member Author

More context:
Http2 can't really be used without HTTPs (#2607)
HTTPs wasn't added in development because that would additional configuration step to docker setup (#2607 (comment))
Could enable Http2/Http3 just in production, but it's not advisable to have different configs between production and development (as then issues affecting just production would be uncaught)

@maxpatiiuk
Copy link
Member Author

maxpatiiuk commented Jun 5, 2023

From @grantfitzsimmons:

https://caniuse.com/http2

HTTP/2 is only supported over TLS (HTTPS).

Browsers impose a per-domain limit of 6-8 connections when using HTTP/1.1, depending on the browser implementation. This allows at most 6-8 concurrent requests per domain.

With HTTP/2, browsers open only 1 connection per domain. However, thanks to the multiplexing feature of the HTTP/2 protocol, the number of concurrent requests per domain is not limited to 6-8, but it is virtually unlimited.

Source: Stack Overflow

This would get around issues involved with the stats page being limited to 6-8 concurrent requests at a given time.

This would require self-hosted institutions and developers to create certificates in development as it requires TLS, but this is not difficult to set up for most users.

@maxpatiiuk @realVinayak – Please add more information, corrections, or comments if necessary 😄

@grantfitzsimmons
Copy link
Contributor

grantfitzsimmons commented Jun 5, 2023

Quoting Max:

@realVinayak had great insight that this could possibly be caused by HTTP 1.1, as it has a limit of 6 simultaneous requests.
We should test if this if fixed when the web server is updated to use http2 or even http3 instead - #2608

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 - Request Improvements or extensions to existing behavior type:meta DevOps and workflow related
Projects
Development

Successfully merging a pull request may close this issue.

4 participants