Skip to content
0:00 / 0:00

#node.js#eventloop#libuv

The Node.js Event Loop: Not So Single Threaded

node.js

43K subscribers • 7 videos on Hallway

YouTube
  • Recommended by 3 people: 3 in engineering communities.
  • Presented by Bryan Hughes, Microsoft Technical Evangelist
  • May be out of date. Uploaded 9 years ago, in an area where tools change fast.

Intermediate. Assumes working knowledge.

173K views9 years ago3 recommendations

Systems programmingWeb developmentNode.js, Deno and BunConcurrency and parallelismPerformance and optimization

Bryan Hughes explains how the Node.js event loop works under the hood, demonstrating that its C++ backend is actually multi-threaded.

The Node.js Event Loop: Not So Single Threaded - Bryan Hughes, Microsoft You've heard Node.js is single threaded. It's true that all JavaScript executed by Node.js is run in a single thread, but JS isn't all. The event loop, written in C++, is multi-threaded! Come learn how the event loop works, how it affects performance, and how you can use it your advantage! About Bryan Hughes Microsoft Technical Evangelist San Francisco, CA Twitter Tweet Websitemedium.com/@nebrius Bryan Hughes is a technical evangelist at Microsoft, a member of the Node.js Technical Steering Committee, and chairperson of the Node.js Community Committee. Bryan is also the creator of Raspi IO, a Raspberry Pi plugin for the Johnny-Five JavaScript robotics library. Outside of tech, Bryan is an amateur photographer, occasional writer, a once upon a time pianist, and a wine aficionado.

Why it's here

3 people recommend this

What people say. Recommended as a clear explanation of how the Node.js event loop handles concurrency and multi-threading under the hood.

u/lucderpin r/node • Recommends

The Node.js Event Loop: Not So Single Threaded

u/wasupinternetin r/node • Recommends

Is there any source explaining how promises work in the event loop? The official documentation only talks about callbacks and I've watched those and it's not fully clear. The Node.js Event Loop: Not So Single Threaded Node's Event Loop From the Inside Out by Sam Roberts, IBM [Morning Keynote- Everything You Need to Know About Node.js Event Loop - Bert Belder, IBM] Jake Archibald: In The Loop - JSConf.Asia 2018 the last one is about Js in general -browser event loop- but watched it anyway.

u/frelbin r/node • Recommends

The Node.js Event Loop: Not So Single Threaded