Mastering Node.js Performance
summary
Shows concrete wins and costs: replacing synchronous file/hash calls with asynchronous ones (benchmarked with autocannon) raises throughput from ~123 to ~428 requests and drops medians from 4.8s to 2.2s and 97ths from 7.8s to 2.4s. Running independent DB queries in parallel cuts latency (example saving eight entities). Avoid the node cluster model in production in favor of nginx/iptables. Resolve a million promises: Bluebird 1.4s vs native 1.8s. Use typed arrays, classes, avoid delete, and move low‑priority jobs to separate processes.
AI-written summary · about
chapters (7)
- 0:00Start
- 3:10General Performance Tips
- 5:55Traditional Approach
- 28:52Possible Multi Process Setups
- 31:21Request Load Comparison
- 32:18Why Cluster Module Handles
- 45:47Avoid Using Dynamic Properties
related talks
53mMastering Node.js Performance
46m10 secrets to improve Javascript Performance
37mCallbacks to Async/Await in Node.js
24mYou Did What? Understanding Node.js Optimizations
01h 04mNode.js performance analytics and best practices
11mRevolutionizing JavaScript Performance
46mNodeJS Scalibility Tips
23mDecomposition of the Main Thread in Node.js to increase throughput
