Skip to content
0:00 / 0:00

#eventloop#libuv#node.js

Node's Event Loop From the Inside Out by Sam Roberts, IBM

node.js

43K subscribers • 7 videos on Hallway

YouTube
  • Recommended by 3 people: 3 in engineering communities.
  • Presented by Sam Roberts, IBM

Advanced. Deep dive for people who know the field.

99K views9 years ago3 recommendations

Systems programmingProgramming languagesNode.js, Deno and BunConcurrency and parallelismPerformance and optimization

Sam Roberts explains how the Node.js event loop and libuv work under the hood, correcting common misconceptions with C code examples.

Node's Event Loop From the Inside Out - Sam Roberts, IBM Do you think Node is asynchronous because it uses a thread pool for network interactions? Do you there is a relationship between "event emitters" and the "event loop"? I will be working through these misaprehensions as well as others, showing how the Node.js event loop really works. There are many, many pictures and blogs on this topic, but many of them are subtly wrong, or outright misleading. Despite that its event loop that is key to Node's scalability and performance, it remains a misunderstood black box to many. I will show how it works - C code may be seen! - talk about why it works that way, and what some of the implications are for Node developers, as well as briefly describe some changes that the Node core team are considering with respect to how Node uses libuv. About Sam Roberts Node, communications protocols, deploying node, rock climbing, mountain biking, beer, and whatever they find really exciting.

Why it's here

3 people recommend this

What people say. Highly recommended for its deep, accurate explanation of Node's event loop internals and libuv.

u/kapv89in r/node • Recommends

Node's Event Loop From the Inside Out by Sam Roberts, IBM

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/fagnerbrackin r/node • Recommends

Node's Event Loop From the Inside Out