Node.js tutorials
39 articles · page 2 of 2Hand-written tutorials, ordered as a recommended learning path.
- 21 Node.js Streams Master Node.js streams for efficient data processing. Covers readable, writable, transform, and duplex streams with real-world examples.
- 22 Async Iterators Master async iterators in Node.js for streaming files, paginated APIs, and backpressure-aware data processing.
- 23 Cluster Learn how the Node.js cluster module forks worker processes to use every CPU core and how to share sockets between them safely.
- 24 Inspector Step through Node.js code with Chrome DevTools and VS Code by attaching to the built-in inspector, including remote and production debugging tips.
- 25 EventEmitter EventEmitter is the backbone of Node. Here are the patterns that make it useful in real systems and the mistakes that turn it into a footgun.
- 26 Express vs Fastify Compare Express and Fastify on performance, ergonomics, plugin model, and TypeScript support to pick the right HTTP framework for your project.
- 27 fs and streams Read and write files in modern Node using fs/promises, and learn when to switch to streams for memory-friendly processing of large data.
- 28 gRPC Server Build a typed, high-performance gRPC server in Node.js with protobuf definitions, streaming RPCs, and production-ready patterns.
- 29 Graceful Shutdown Implement graceful shutdown in Node.js services with signal handling, connection draining, and timeouts that survive real production deploys.
- 30 Node Mem Leaks Find and fix memory leaks in Node.js using heap snapshots, sampling, and a few reliable patterns to avoid leaks.
- 31 Mongoose Model MongoDB data in Node.js with Mongoose, covering schemas, validation, queries, population, and indexes for production apps.
- 32 Pino Logging Set up structured, high-performance logging in Node.js with Pino, including child loggers, redaction, and pretty-printing for development.
- 33 Process vs Thread Understand when to reach for child processes, worker threads, or the cluster module to scale Node.js workloads.
- 34 Redis and BullMQ Build a reliable background job system in Node.js using Redis and BullMQ, with queues, workers, retries, and scheduled jobs.
- 35 Streams How Node.js streams really work, why backpressure matters, and how to compose readable, writable, and transform streams without blowing up memory.
- 36 TypeScript Setup Set up a clean, modern TypeScript project for Node.js with tsconfig, build scripts, ESM, and a dev loop that does not get in your way.
- 37 Workers vs Cluster When to reach for worker_threads versus cluster in Node.js, with a clear mental model, real code, and the pitfalls that bite people in production.
- 38 Zod Use Zod to validate and infer types for request payloads, environment variables, and external data in Node.js apps.
- 39 WebSockets Node Build a real WebSocket server in Node.js: handshake, broadcasting, heartbeats, backpressure, and scaling beyond a single process.