Interview Hub
Sign in

Q18: How does Node handle an HTTP request at a high level?

MidNode.js 29

Answer

HTTP server receives a socket; Node parses request line/headers and emits a request object with a readable body stream. Response is a writable stream. Keep handlers non-blocking; delegate heavy work to workers or queues. In production you often sit behind a reverse proxy (TLS termination, buffering).

Having a tech or coding interview? Check 29 JavaScript & Node.js interview questions.

EditorJavaScript · local only
How does Node handle an HTTP request at a high level? | TorqStudio Interview Hub