Skip to main content

What is TCP head-of-line blocking and how do you fix it?

Expert NodeJS
Quick Answer TCP head-of-line blocking: HTTP/1.1 processes requests in order on one connection รขโ‚ฌโ€ a slow response blocks all subsequent ones on that connection. Fix: use HTTP/2 (multiplexes multiple streams on one connection with independent flow control), increase connection concurrency in HTTP agents, or use request pipelining carefully. gRPC (HTTP/2) eliminates this for internal services.

Answer

Head-of-line blocking occurs when a lost TCP packet halts subsequent packets. Mitigate using HTTP/2 multiplexing, UDP, or splitting connections.
S
SugharaIQ Editorial Team Verified Answer

This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice