nodejs-backend
Node.js runtime performance, event loop lag monitoring, cluster worker threads, and memory heap tuning.
SKILL.mdskills/nodejs-backend/SKILL.md
GitHubNode.js Backend Performance Protocol
Design high-throughput, non-blocking Node.js server architectures.
1. Non-Blocking Event Loop
- Never run synchronous CPU-intensive tasks (
fs.readFileSync,crypto.pbkdf2Sync, large JSON parsing) inside main event loop requests. - Offload heavy computational tasks to
worker_threadsor background worker queues.
2. Stream Processing
Process large payloads (file uploads, CSV exports, DB dumps) using Streams (stream.pipeline) rather than buffering into memory.