Backend

Node.js

Step-by-step articles on Node.js, part of our Backend collection.

  • 10 articles
  • 10 min of reading
  • 3 sub-topics
  • 05 Oct, 2026 last updated

Showing 10 articles

Node.js 1 min read

Error Handling in Express 5

Express 5 finally handles async route handlers properly: if an async handler throws or returns a rejected promise, the error goes to your error middleware. No more express-async-errors or wrapping every route in try/catch. Async handlers just work app.get('/us...

19 Jun, 2026 Author 1.39K 82
Read article
Node.js 1 min read

Graceful Shutdown in Node.js

Containers and process managers stop your app by sending SIGTERM . If you exit immediately, requests in progress fail and database transactions are cut off. A graceful shutdown finishes the current work first. The steps Stop accepting new connections. Let in-f...

13 May, 2026 Author 423 114
Read article
Node.js 1 min read

Finding Memory Leaks in Node.js

A memory leak shows up as memory that keeps climbing until the process is killed or restarts. The fix starts with proving where the memory goes. 1. Confirm the leak setInterval(() => { const { heapUsed, rss } = process.memoryUsage(); console.log(`heap ${(heapU...

25 Apr, 2026 Author 184 77
Read article