Skip to content

Commit d0ceedb

Browse files
committed
docs: update Node.js version recommendation to use the latest LTS release for improved performance
1 parent 5b0a373 commit d0ceedb

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

src/content/pages/en/advanced/best-practice-performance.mdx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This topic clearly falls into the "devops" world, spanning both traditional deve
1515
- [Use worker threads for CPU-intensive tasks](#use-worker-threads-for-cpu-intensive-tasks)
1616
- Things to do in your environment / setup (the ops part):
1717
- [Set NODE_ENV to "production"](#set-node_env-to-production)
18-
- [Use Node.js 24 or newer](#use-nodejs-24-or-newer)
18+
- [Use the latest LTS version of Node.js](#use-the-latest-lts-version-of-nodejs)
1919
- [Ensure your app automatically restarts](#ensure-your-app-automatically-restarts)
2020
- [Run your app in a cluster](#run-your-app-in-a-cluster)
2121
- [Cache request results](#cache-request-results)
@@ -188,7 +188,7 @@ Here are some things you can do in your system environment to improve your app's
188188
- [Use worker threads for CPU-intensive tasks](#use-worker-threads-for-cpu-intensive-tasks)
189189
- [Things to do in your environment / setup](#things-to-do-in-your-environment--setup)
190190
- [Set NODE\_ENV to "production"](#set-node_env-to-production)
191-
- [Use Node.js 24 or newer](#use-nodejs-24-or-newer)
191+
- [Use the latest LTS version of Node.js](#use-the-latest-lts-version-of-nodejs)
192192
- [Ensure your app automatically restarts](#ensure-your-app-automatically-restarts)
193193
- [Use a process manager](#use-a-process-manager)
194194
- [Use an init system](#use-an-init-system)
@@ -225,11 +225,9 @@ Environment=NODE_ENV=production
225225
226226
For more information, see [Using Environment Variables In systemd Units](https://www.flatcar.org/docs/latest/setup/systemd/environment-variables/).
227227
228-
### Use Node.js 24 or newer
228+
### Use the latest LTS version of Node.js
229229
230-
Running your app on a recent Node.js release is one of the easiest ways to improve performance. Benchmarks show that running Express on Node.js 24 can be roughly two times faster than on Node.js 22. The gains come from the cumulative improvements in the V8 JavaScript engine shipped with newer Node.js versions: a faster JIT compiler, more efficient garbage collection, and faster property access and regular-expression matching, all of which Express relies on heavily when processing requests and matching routes.
231-
232-
Supporting old Node.js versions also holds Express back from adopting performance improvements, which is why Express 5 dropped support for versions before v18. See the [Node.js releases](https://nodejs.org/en/about/previous-releases) page for the current supported versions.
230+
Running your app on a recent Node.js release is one of the easiest ways to improve performance. Each new version of Node.js ships with cumulative improvements to the V8 JavaScript engine and the runtime itself, so the same Express app can handle significantly more requests simply by upgrading. Benchmarks such as NodeSource's [Node.js Performance Report](https://nodesource.com/pages/content-node-performance-report-wb.html) show how much throughput can improve from one Node.js version to the next. For production, use the latest [LTS release](https://nodejs.org/en/about/previous-releases) of Node.js, and keep it up to date as new versions come out.
233231
234232
### Ensure your app automatically restarts
235233

0 commit comments

Comments
 (0)