Mastery
Node.js · Expert - architecture, internals and edge cases
- The Node event loop: phases and pitfallsDiscover the libuv phases, the real difference between setImmediate and setTimeout, and how to detect a blocked event loop.
- Streams and backpressure: handling large filesProcess multi-gigabyte files with constant memory thanks to streams, pipeline, and backpressure.
- Securing an API in productionHarden a Node API in production: correct CORS, rate limiting, security headers, and defenses against the main OWASP API risks.
- Observability: logs, healthcheck, graceful shutdownMake your service observable and cleanly stoppable: JSON logs, liveness/readiness probes, and SIGTERM handling.
- Going to production: process manager, Docker, clusterShip to production: NODE_ENV, process manager, a correct Docker image, and multi-core scaling with cluster.