in-flight request
A request that has been received but not yet fully answered.
In more detail
Graceful shutdown waits for these to finish instead of cutting them off. Counting them tells a server when it is safe to exit.
Related terms
- connection draining — Stopping new traffic to a backend while letting its existing connections finish, before removing or restarting it.
- graceful shutdown — Stopping a service in an orderly way: finish current work, close connections, then exit.
Taught in
- Close Phase & Signal Dispatch: Sockets & Teardown — Node.js Internals & Backend Services
- Cluster Architecture: node:cluster & Zero-Downtime — Node.js Internals & Backend Services
- Production Hardening: Graceful Shutdown & Docker — Node.js Internals & Backend Services