Interview Q&A / Node.js
Node.js interview questions
The event loop on the server, streams, modules and building APIs with Express.
Prefer rapid revision? Practise Node.js short interview answers →
- When would you use worker_threads, cluster or child_process in Node.js?
Use worker_threads for CPU-heavy JavaScript inside one process, cluster to run several copies of a server across CPU cores sharing one port, and child_process to run a separate program or script such as ffmpeg or a Python file.
AdvancedIn-depth3 min read