Tagged articles
2 articles
Page 1 of 1
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
May 20, 2021 · Backend Development

Mastering Node.js Multi‑Process: From spawn to cluster for High Concurrency

This article explains process and thread fundamentals, describes Node.js's single‑threaded nature, and provides detailed guidance on using the child_process module (spawn, fork, exec, execFile) and the cluster module to create, manage, and communicate between multiple Node.js processes for scalable, high‑concurrency applications.

BackendClusterNode.js
0 likes · 11 min read
Mastering Node.js Multi‑Process: From spawn to cluster for High Concurrency
Node Underground
Node Underground
Jan 25, 2018 · Backend Development

Mastering Node.js child_process: exec vs spawn and Multi‑Core Strategies

Node.js’s child_process core module enables creation of child processes to leverage multi‑core CPUs and inter‑process communication, while also allowing execution of external files or system commands; this article explores the differences and inner workings of its exec and spawn methods.

Node.jschild_processexec
0 likes · 1 min read
Mastering Node.js child_process: exec vs spawn and Multi‑Core Strategies