Advanced Node.js with TypeScript

The training is intended for people who want to take their backend work with Node.js to the next level. Participants will learn advanced techniques used in professional teams, including multi-layer application architecture, integration of TypeScript in large projects, design patterns, and approaches to scaling services. We work on real examples related to data processing, handling asynchronicity, worker threads, streams, and database integration. As a result, after the training, participants will be able to create modern, efficient, and well-designed backend services that perform well in production environments.

Training program

TypeScript Foundations for the Project

  1. shared DTOs
  2. ResultT> as a return type for domain layers
  3. type narrowing in input validation
  4. ESM configuration

TypeScript Decorators + Metadata

  1. building a lightweight custom HTTP mini-framework: @Controller(), @Inject()
  2. Reflect Metadata integration
  3. automatic endpoint registration using decorators

Advanced Async: Event Loop, Streams, Backpressure

  1. deep dive into the Node.js event loop
  2. handling large file uploads with streams
  3. backpressure strategies

Worker Threads: Background File Processing

  1. FileProcessingWorker (worker thread)
  2. transferring file buffers to workers
  3. communication: status updates, progress, errors
  4. structuredClone + transferable objects

Architecture: Clean, DI, Ports & Adapters

  1. Application - Domain - Infrastructure
  2. introduction of layered architecture

Design Patterns in Practice

  1. Command pattern for domain operations
  2. Factory pattern for worker creation
  3. Observer/EventEmitter for local processing events
  4. Adapter pattern for file storage layer

WebSockets: Realtime Processing Progress

  1. implementing a WebSocket server
  2. connecting WebSockets with worker threads
  3. broadcasting updates to frontend clients

Performance & Debugging

  1. CPU & heap profiling
  2. event loop analysis
  3. mock memory leak inside a worker thread

Security

  1. input sanitization
  2. request validation using decorators
  3. auth token
  4. rate limiting
  5. secrets & configuration separation