Node.js: More Threads Than You Think
Exploring the Multi-Threaded Capabilities of Node.js
Date
June 18, 2025
Duration
18:30 - 20:30 (2 hours)
Location
ORBIZ Josef, Josefstrasse 214a, 8005 Zürich
Capacity
Limited to 15 attendees

Matteo Collina
Co-Founder/CTO @ Platformatic - Node.js TSC member - Fastify Lead Maintainer
EXPERTISE
Limited to 15 attendees
See ticket options below.
Workshop Overview
Node.js was announced in 2009 as a single-threaded JavaScript runtime. In 2018, it became multi-threaded, and no one noticed. This workshop explores the world of multithreaded Node.js, showing how it is no longer a single-threaded environment. It introduces the Worker Threads API for offloading CPU-intensive tasks and the MessagePort API for thread communication. It discusses the challenges of cloning and transferring objects between threads and introduces tools like Piscina to simplify multithreading. Finally, it showcases Watt, a Node.js application server that leverages worker threads for isolated service execution and network-less HTTP communication.
Topics We'll Cover
Worker Threads API
Learn the fundamentals of Node.js's Worker Threads API for creating true multi-threaded applications:
- •Creating and managing worker threads
- •Identifying CPU-intensive tasks for offloading
- •Thread lifecycle and error handling
Thread Communication
Master effective communication patterns between threads in Node.js:
- •MessagePort API for efficient data transfer
- •Cloning vs. transferring objects between threads
- •Parent-child communication patterns
Thread Pools with Piscina
Simplify multithreading with thread pool management:
- •Implementing thread pools with Piscina
- •Dynamic task distribution and load balancing
- •Performance optimization techniques
Watt Application Server
Explore the cutting-edge Watt server for isolated service execution:
- •Service isolation through worker threads
- •Network-less HTTP communication
- •Building resilient service architectures
What You'll Take Away
Understanding of Node.js's multi-threaded capabilities
Practical experience with Worker Threads API
Knowledge of effective thread communication patterns
Skills for building thread-based performance optimizations
Experience with tools like Piscina for thread pool management
Insights into Watt for isolated service execution
Note: All participants will receive code examples and reference materials to apply multithreading techniques in their own projects after the workshop.
Who Should Attend
Node.js Developers (intermediate to advanced)
Backend Engineers looking to optimize performance
Technical Leads and Engineering Managers
Developers working on CPU-intensive Node.js applications
Perfect for: Developers looking to leverage multithreading for performance-critical Node.js applications.
Secure Your Spot
Includes workshop materials, code examples, and refreshments
All proceeds support ZurichJS running costs, refreshments, and future meetups. None of the money goes to Platformatic.
Only 15 spots available for this hands-on technical workshop.
Join our exclusive workshop to learn how to leverage Node.js's multi-threaded capabilities for high-performance applications.
June 18, 2024 • 18:30-20:30 • Limited to 15 participants
Unlock the Full Power of Node.js Threads! 🚀
Join this exclusive workshop to discover how Node.js evolved beyond its single-threaded origins. Learn practical multi-threading techniques from a Node.js expert!
Master the art of multi-threaded programming in Node.js and take your applications to the next level of performance and scalability.
Join us on June 18, 2025