Matteo Collina
Node.js: More Threads Than You Think
#1about 3 minutes
Debunking the myth of single-threaded Node.js
Node.js has supported multi-threading via the worker_threads module since 2018, contrary to the common misconception that it is single-threaded.
#2about 4 minutes
How worker threads communicate with each other
Threads communicate using MessagePort and MessageChannel for direct messaging or BroadcastChannel to send messages to all threads simultaneously.
#3about 2 minutes
Understanding object serialization between threads
JavaScript objects are not shared between threads but are copied via the structured clone algorithm, with certain objects like SharedArrayBuffer being transferable for efficiency.
#4about 2 minutes
Using Piscina for effective thread pool management
The Piscina library simplifies multi-threading by providing a thread pool to manage worker creation, task scheduling, and result handling automatically.
#5about 2 minutes
Real-world use cases for worker threads
Worker threads are used in libraries like Pino to prevent log loss on exit and within Node.js itself to power loader hooks for ESM and TypeScript support.
#6about 2 minutes
Scaling applications with the Vlt application server
The Vlt application server runs multiple Node.js services as separate threads within a single process, enabling efficient communication via shared memory.
#7about 2 minutes
Demo: Offloading CPU-intensive work to a thread pool
A live demo shows how offloading a synchronous, blocking operation from the main event loop to a Piscina thread pool dramatically improves server throughput.
#8about 2 minutes
Demo: Advanced queue management for load shedding
By managing the task queue and skipping work when the system is overloaded, you can significantly improve tail latency and overall throughput.
#9about 4 minutes
Demo: Scaling apps with Vlt and no code changes
A demonstration shows how the Vlt server can scale both a standard API and a Next.js SSR application across multiple threads using only configuration changes.
Related jobs
Jobs that call for the skills explored in this talk.
Hubert Burda Media
München, Germany
€80-95K
Intermediate
Senior
JavaScript
Node.js
+1
tree-IT GmbH
Bad Neustadt an der Saale, Germany
€54-80K
Intermediate
Senior
Java
TypeScript
+1
Matching moments
01:32 MIN
Organizing a developer conference for 15,000 attendees
Cat Herding with Lions and Tigers - Christian Heilmann
04:57 MIN
Increasing the value of talk recordings post-event
Cat Herding with Lions and Tigers - Christian Heilmann
02:54 MIN
Automating video post-production with local scripts
Cat Herding with Lions and Tigers - Christian Heilmann
04:49 MIN
Using content channels to build an event community
Cat Herding with Lions and Tigers - Christian Heilmann
02:39 MIN
Establishing a single source of truth for all data
Cat Herding with Lions and Tigers - Christian Heilmann
03:17 MIN
Selecting strategic partners and essential event tools
Cat Herding with Lions and Tigers - Christian Heilmann
02:44 MIN
Rapid-fire thoughts on the future of work
What 2025 Taught Us: A Year-End Special with Hung Lee
03:39 MIN
Breaking down silos between HR, tech, and business
What 2025 Taught Us: A Year-End Special with Hung Lee
Featured Partners
Related Videos
Multithreading in Javascript: A guide to Web Workers
Dani Coll
1, 2, 3... Fastify!
Matteo Collina
The Eventloop in JavaScript - How does it work?
Christian Woerz
Java 21: The Revolution of Virtual Threads - A Deep Dive
Christian Woerz
Things I learned while writing high-performance JavaScript applications
Michele Riva
Introduction and pitfalls of Java's new concurrency model
David Vlijmincx
Catching up on the basics you don't really need that much code
Chris Heilmann
Multiple Ships to the Island - Micro Frontends & Island Architectures
Florian Rappl
Related Articles
View all articles



From learning to earning
Jobs that call for the skills explored in this talk.

nono
£75-120K
Intermediate
API
Node.js
Grafana
GraphQL
+9

nono
£75-120K
Intermediate
API
Node.js
Grafana
GraphQL
+9





Plexus Tech
Municipality of Madrid, Spain
Intermediate
GIT
REST
Node.js
Angular
JavaScript
+2

