Skip to content

http/2 using uvicorn #2323

Answered by gi0baro
sandeep12rana asked this question in Q&A
May 3, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

When using load balancers and/or reverse proxies you have two connections happening: the downstream and the upstream.
The browser connects to the balancer/proxy (downstream) using the available protocol (both ALB and nginx support HTTP/2), then the balancer/proxy talks to your application (upstream) using a separated HTTP connection.

Thus, with uvicorn the proxy will use HTTP/1.1, with Hypercorn or servers supporting HTTP/2 it might use that version to talk to the upstream (if instructed to do so).

Replies: 1 comment 2 replies

Comment options

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

@gi0baro
Comment options

Answer selected by sandeep12rana
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