CodeZettaInterview Hub

Node.js · Runtime · Junior · Best Practice

What does `process` expose that matters in production services?

Short Interview Answer

Env, args, PID, signals, memoryUsage, exit codes, and stdio — the process control surface.

Detailed Explanation

Use env for config, handle SIGTERM for graceful shutdown, and avoid sync work in signal handlers. `process.exit` abruptly skips cleanup — prefer orderly shutdown. Interviewers often ask how you drain connections on deploy.

Did you know this answer?