Skip to content

doc: suggest worker threads in cluster docs - #41616

Merged
nodejs-github-bot merged 1 commit into
nodejs:masterfrom
tniessen:doc-suggest-worker-threads-in-cluster-docs
Jan 23, 2022
Merged

doc: suggest worker threads in cluster docs#41616
nodejs-github-bot merged 1 commit into
nodejs:masterfrom
tniessen:doc-suggest-worker-threads-in-cluster-docs

Conversation

@tniessen

Copy link
Copy Markdown
Member

The current documentation is incorrect in that it says "A single instance of Node.js runs in a single thread," which is not true due to the addition of worker threads (#20876).

This patch removes the incorrect statement and instead suggests that applications consider using worker threads when process isolation is not needed.

@tniessentniessen added cluster Issues and PRs related to the cluster subsystem. doc Issues and PRs related to the documentations. worker Issues and PRs related to Worker support. labels Jan 20, 2022
Comment threaddoc/api/cluster.md Outdated
@tniessen
tniessenforce-pushed the doc-suggest-worker-threads-in-cluster-docs branch from 296d627 to 6eb266aCompareJanuary 20, 2022 18:08
Comment threaddoc/api/cluster.md Outdated
@tniessen
tniessenforce-pushed the doc-suggest-worker-threads-in-cluster-docs branch from 6eb266a to 00ec4eaCompareJanuary 20, 2022 19:32
Comment threaddoc/api/cluster.md Outdated

@TrottTrott left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with or without my suggestion

The current documentation is incorrect in that it says "A single
instance of Node.js runs in a single thread," which is not true due
to the addition of worker threads.
This patch removes the incorrect statement and instead suggests that
applications consider using worker threads when process isolation is
not needed.
Refs: nodejs#20876
@tniessen
tniessenforce-pushed the doc-suggest-worker-threads-in-cluster-docs branch from 00ec4ea to bbe95cfCompareJanuary 21, 2022 12:07
@tniessentniessen added the commit-queue Add this label to land a pull request using GitHub Actions. label Jan 23, 2022
@nodejs-github-botnodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Jan 23, 2022
@nodejs-github-bot
nodejs-github-bot merged commit 312b0fc into nodejs:masterJan 23, 2022
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Landed in 312b0fc

BethGriggs pushed a commit that referenced this pull request Jan 25, 2022
The current documentation is incorrect in that it says "A single
instance of Node.js runs in a single thread," which is not true due
to the addition of worker threads.
This patch removes the incorrect statement and instead suggests that
applications consider using worker threads when process isolation is
not needed.
Refs: #20876
PR-URL: #41616
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Mestery <mestery@protonmail.com>
@ruyadornoruyadorno mentioned this pull request Feb 8, 2022
danielleadams pushed a commit that referenced this pull request Feb 28, 2022
The current documentation is incorrect in that it says "A single
instance of Node.js runs in a single thread," which is not true due
to the addition of worker threads.
This patch removes the incorrect statement and instead suggests that
applications consider using worker threads when process isolation is
not needed.
Refs: #20876
PR-URL: #41616
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Mestery <mestery@protonmail.com>
danielleadams pushed a commit that referenced this pull request Mar 2, 2022
The current documentation is incorrect in that it says "A single
instance of Node.js runs in a single thread," which is not true due
to the addition of worker threads.
This patch removes the incorrect statement and instead suggests that
applications consider using worker threads when process isolation is
not needed.
Refs: #20876
PR-URL: #41616
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Mestery <mestery@protonmail.com>
danielleadams pushed a commit that referenced this pull request Mar 3, 2022
The current documentation is incorrect in that it says "A single
instance of Node.js runs in a single thread," which is not true due
to the addition of worker threads.
This patch removes the incorrect statement and instead suggests that
applications consider using worker threads when process isolation is
not needed.
Refs: #20876
PR-URL: #41616
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Mestery <mestery@protonmail.com>
danielleadams pushed a commit that referenced this pull request Mar 14, 2022
The current documentation is incorrect in that it says "A single
instance of Node.js runs in a single thread," which is not true due
to the addition of worker threads.
This patch removes the incorrect statement and instead suggests that
applications consider using worker threads when process isolation is
not needed.
Refs: #20876
PR-URL: #41616
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Mestery <mestery@protonmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clusterIssues and PRs related to the cluster subsystem.docIssues and PRs related to the documentations.workerIssues and PRs related to Worker support.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@tniessen@nodejs-github-bot@Trott@benjamingr@Mesteery