Scrivio Interview library
ConceptFoundations6 min read · updated 13 November 2026

HTTP/1.1 sends one request at a time per connection. HTTP/2 multiplexes many streams over one TCP connection, and HTTP/3 runs HTTP over QUIC, a transport built on UDP with TLS 1.3 inside. gRPC uses HTTP/2 as its transport.

Explain what problem each version solves, where head-of-line blocking remains, and what that means for gRPC.

HTTP/1.1 allows one outstanding request per connection, so a slow response blocks the ones behind it and browsers open about six connections per host. HTTP/2 multiplexes many streams over one TCP connection with binary frames and HPACK header compression, but all streams share one TCP byte stream, so one lost packet stalls every stream until it is retransmitted. HTTP/3 runs over QUIC, where streams are independent at the transport level, the transport and TLS 1.3 handshakes are combined, and connection IDs survive address changes. gRPC uses HTTP/2, one stream per call over long-lived connections, which is why gRPC must be balanced per request.

Why this question is asked

HTTP versions sound like a detail for browser vendors, but they decide how many connections our services hold, how a lossy mobile network affects latency, and why gRPC load balancing behaves strangely. Interviewers ask this to see whether we understand head-of-line blocking at each layer and what follows from it. In this answer, we will walk through HTTP/1.1, HTTP/2 and HTTP/3, see exactly where head-of-line blocking remains at each step, and then see what HTTP/2 means for gRPC.

1A Quick Recap: Head-of-Line Blocking

Head-of-line blocking means that the item at the front of a queue holds up everything behind it, even if the items behind are ready. It can happen at the application layer, when a protocol requires responses in order, and at the transport layer, when the transport delivers bytes strictly in order. Each HTTP version removes one of these and the question is which one remains.

2HTTP/1.1: One Request at a Time per Connection

In HTTP/1.1, a connection carries one request and its response, then the next. Pipelining, sending several requests without waiting, exists in the specification but responses must still come back in order, so a slow first response blocks the others, and browsers never enabled it widely. So a slow response blocks the connection at the application level. Browsers work around this by opening several connections per host, commonly six, and pages work around it further by spreading assets over several host names. Each extra connection costs a TCP and TLS handshake and its own slow start, the cautious beginning of a TCP connection before it learns how fast it can send.

3HTTP/2: Many Streams on One Connection

HTTP/2 keeps the meaning of HTTP, methods, headers and status codes, but changes how it is carried. Messages are split into binary frames, each frame is tagged with a stream id, and many streams, one per request, are interleaved on a single TCP connection. A slow response no longer blocks the others; their frames simply flow around it. Headers are compressed with HPACK, which remembers headers already sent on the connection, so repeated cookies and user agents cost a few bytes instead of hundreds.

But head-of-line blocking moved down a layer. TCP delivers one ordered byte stream. If one packet is lost, TCP holds back every byte after it until the retransmission arrives, and those bytes may belong to any stream. So a lost packet carrying part of stream 5 stalls streams 7, 9 and 11 too, even though their data has already arrived. On a clean network this rarely matters; on a lossy one, a single connection can do worse than six HTTP/1.1 connections, where a loss stalls only one of the six.

Where head-of-line blocking remains
VersionTransportApplication-level HOLTransport-level HOL
HTTP/1.1TCP, about 6 connections per hostyes, one request at a timeper connection
HTTP/2one TCP connectionno, streams multiplexedyes, one loss stalls all streams
HTTP/3QUIC over UDPno, streams multiplexedno, streams independent
Each version removes one layer of head-of-line blocking.

4HTTP/3: Streams That Are Independent All the Way Down

HTTP/3 replaces TCP with QUIC, a transport built on UDP. QUIC knows about streams itself, so it delivers each stream's data in order but independently of the others: a lost packet holds up only the stream whose data it carried. That removes the transport-level head-of-line blocking that HTTP/2 suffered.

QUIC also merges the transport handshake with TLS 1.3, so a new connection is ready after one round trip instead of one for TCP plus one for TLS, and resumed connections can send data immediately with 0-RTT. Each connection is identified by connection IDs rather than by the client's IP address and port, so when a phone switches from Wi-Fi to mobile data, the connection survives instead of being rebuilt. These gains matter most on lossy, high-latency networks such as mobile. Inside a data centre, with very low loss and sub-millisecond round trips, the difference is small, and HTTP/2 remains the common choice between services.

5What HTTP/2 Means for gRPC

gRPC uses HTTP/2 as its transport. Each call is one HTTP/2 stream: the method is the path, such as /orders.OrderService/GetOrder, metadata travels as headers, the deadline travels in the grpc-timeout header, and messages are sent as length-prefixed frames, with the status in trailers at the end. Streaming calls are simply long-lived streams. A client keeps one or a few long-lived connections, called channels in grpc-java, and multiplexes all its calls over them.

Java
ManagedChannel channel = ManagedChannelBuilder
.forTarget("dns:///orders.internal:443")
.defaultLoadBalancingPolicy("round_robin") // one subchannel per resolved address
.build();
OrderServiceGrpc.OrderServiceBlockingStub stub = OrderServiceGrpc.newBlockingStub(channel);
Order order = stub.withDeadlineAfter(300, TimeUnit.MILLISECONDS) // set per call
.getOrder(request); // one new stream; deadline sent as grpc-timeout, about 300m
// every call is a new stream; round_robin spreads calls across backends

This is why load balancing gRPC needs care. A layer 4 balancer balances connections, and gRPC opens very few, long-lived ones, so all calls from a client may land on one backend for hours. Balancing must be per request: either client-side, as above with round_robin over all backend addresses, or through a layer 7 proxy such as Envoy that understands HTTP/2 and spreads individual streams across backends.

6Follow-up questions

Why does a single HTTP/2 connection sometimes perform worse than six HTTP/1.1 connections on a lossy network?

Because all streams share one TCP byte stream and one congestion window. When a packet is lost, every stream on the connection waits for the retransmission, and TCP halves its congestion window, slowing everything. With six HTTP/1.1 connections, a loss stalls and slows only one of them while the other five keep going at full speed, so with enough loss the aggregate throughput of six connections can be higher. HTTP/3 fixes this by making streams independent in QUIC.

Can a browser use HTTP/3 to a server that also speaks HTTP/2?

Yes. Servers advertise HTTP/3 support with an Alt-Svc header or an HTTPS DNS record, and browsers try QUIC while keeping TCP as a fallback, because some networks block UDP. So HTTP/3 is usually added at the edge alongside HTTP/2, not instead of it.

7Conclusion

In this answer, we saw that HTTP/1.1 blocks at the application level, one request at a time per connection, so browsers open about six connections. HTTP/2 multiplexes streams on one TCP connection with HPACK, but a single lost packet stalls every stream. HTTP/3 over QUIC makes streams independent, combines the transport and TLS 1.3 handshakes and survives address changes, helping most on lossy mobile networks. gRPC runs each call as an HTTP/2 stream over long-lived connections, so it must be load balanced per request.

What to say in the interviewAbout 90 seconds aloud

Open with

HTTP/1.1 handles one request at a time per connection, so a slow response blocks everything behind it at the application level, and browsers open about six connections per host to work around it.

Then, if they want more

HTTP/2 fixes that by splitting messages into binary frames on many concurrent streams over one TCP connection, with HPACK header compression. But head-of-line blocking moves into TCP: it is one ordered byte stream, so one lost packet stalls every stream until it is retransmitted, and on a lossy network one HTTP/2 connection can do worse than six HTTP/1.1 connections.

HTTP/3 runs over QUIC on UDP, where streams are independent at the transport level, so a loss only delays its own stream. QUIC also combines the transport and TLS 1.3 handshakes into one round trip and uses connection IDs, so a connection survives a phone changing networks.

That helps most on mobile; inside a data centre the gains are small. gRPC runs over HTTP/2: each call is a stream, metadata is headers, the deadline is the grpc-timeout header, and clients keep a few long-lived connections that carry many calls.

That last point is why gRPC needs per-request load balancing, client-side round robin or an HTTP/2-aware proxy like Envoy, because a connection-level balancer would pin all of a client's calls to one backend.

About this answer

Last updated
13 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the official documentation for the version you use. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "Explain what problem each version solves, where head-of-line blocking remains, and what...": https://scrivio-interview-library.netlify.app/architecture/load-balancing-networking/42938e8755/