request lifecycle
Everything that happens to one web request, from the connection arriving through reading, handling and responding to cleaning up.
In more detail
Timeouts, cancellation and error handling all attach to points in this lifecycle. Knowing it helps decide where to measure latency and where to release resources.
Related terms
- HTTP — The protocol web browsers and web servers use to send requests and responses.
- AbortController — The standard JavaScript object for cancelling asynchronous work: its signal is handed to the work, and calling abort() cancels it.
Taught in
- Stream Pipelines: pipeline, AbortSignal & Teardown — Node.js Internals & Backend Services
- Native HTTP Server: Request & Response Lifecycles — Node.js Internals & Backend Services
- Routing & Middleware: Path Parsing & Async Context — Node.js Internals & Backend Services