Skip to content

Commit 1e417a6

Browse files
Update dont-block-the-event-loop.md
Signed-off-by: Thiago Romano <[email protected]>
1 parent 918232c commit 1e417a6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/site/pages/en/learn/asynchronous-work/dont-block-the-event-loop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ For a complicated task, move the work off of the Event Loop onto a Worker Pool.
365365
You have two options for a destination Worker Pool to which to offload work.
366366

367367
1. You can use the built-in Node.js Worker Pool by developing a [C++ addon](https://nodejs.org/api/addons.html). On older versions of Node, build your C++ addon using [NAN](https://github.com/nodejs/nan), and on newer versions use [N-API](https://nodejs.org/api/n-api.html). [node-webworker-threads](https://www.npmjs.com/package/webworker-threads) offers a JavaScript-only way to access the Node.js Worker Pool.
368-
2. You can create and manage your own Worker Pool dedicated to computation rather than the Node.js I/O-themed Worker Pool. The most straightforward way to do this is using [Child Process](https://nodejs.org/api/child_process.html) or [Cluster](https://nodejs.org/api/cluster.html).
368+
2. You can create and manage your own Worker Pool dedicated to computation rather than the Node.js I/O-themed Worker Pool. The most straightforward ways to do this is using [Child Process](https://nodejs.org/api/child_process.html) or [Cluster](https://nodejs.org/api/cluster.html).
369369

370370
You should _not_ simply create a [Child Process](https://nodejs.org/api/child_process.html) for every client.
371371
You can receive client requests more quickly than you can create and manage children, and your server might become a [fork bomb](https://en.wikipedia.org/wiki/Fork_bomb).

0 commit comments

Comments
 (0)