Compare Head-of-Line Blocking in HTTP/1.1 and HTTP/2 Delivery

Last updated: November 29, 2026

Quick Overview

Given a set of responses with sizes and the times the server finishes producing them, compute when each completes on one HTTP/1.1 connection (in request order) and on one HTTP/2 connection (multiplexed frames), and explain where HTTP/3 helps further.

Google
Software Engineering Fundamentals
Software Engineer
Google
November 29, 2026
Software Engineer
Onsite
Software Engineering Fundamentals
Medium

0

0

0 solved


Given a set of responses with sizes and the times the server finishes producing them, compute when each completes on one HTTP/1.1 connection (in request order) and on one HTTP/2 connection (multiplexed frames), and explain where HTTP/3 helps further.

Google drove SPDY, HTTP/2 and QUIC to make Search and YouTube pages load faster, so web performance loops ask candidates to explain head-of-line blocking precisely. The interviewer checks that you can quantify the effect with a simple model, not only recite the term.

What the Interviewer Expects
  • Model HTTP/1.1 responses as strictly in request order on a connection
  • Model HTTP/2 as interleaved frames shared by ready streams
  • Compute completion times for both
  • Explain that HTTP/2 still has TCP-level head-of-line blocking on packet loss
  • Explain how QUIC removes that by having independent streams over UDP
Key Topics to Cover
head-of-line blocking
HTTP/2 multiplexing
HTTP/1.1 pipelining
QUIC
web performance
How to Approach This
  1. Apply SOLID principles. Single Responsibility makes code testable, Open/Closed makes it extensible.
  2. Choose data structures based on access patterns, not familiarity.
  3. Prefer immutable data and message passing over shared mutable state for concurrency.
  4. Design APIs with RESTful conventions, versioning, meaningful errors, and pagination from day one.
Possible Follow-up Questions
  • Why did browsers open six connections per host under HTTP/1.1?
  • How do HTTP/2 priorities or the Extensible Priorities scheme change the result?
  • What is the cost of multiplexing many streams over one congestion window?
  • How would you measure this in Chrome DevTools or WebPageTest?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements
  • Link bandwidth: 1 unit of bytes per tick. Responses are (ready_tick, size) in request order.
  • HTTP/1.1 (one connection, pipelined): a response starts only after the previous one finished sending ...
High-Level Design

HTTP/1.1 is a FIFO: response i starts at max(ready_i, finish_{i-1}) and finishes size_i ticks later. A slow first response (a server-rendered HTML page waiting on a backend) blocks a small, alread...


Submit Your Answer
Markdown supported