Skip to content
0:00 / 0:00

#libuv#epoll#eventloop

Why does node.js scale? Libuv & epoll & fcntl

Gabriel Zimmermann

4K subscribers • 2 videos on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.
  • Presented by Gabriel Zimmermann

Intermediate. Assumes working knowledge.

11K views6 years ago1 recommendation

Systems programmingDistributed systemsNode.js, Deno and BunOperating systemsConcurrency and parallelism

Gabriel Zimmermann dives into the Linux implementation of the Node.js event loop, explaining non-blocking I/O, select, poll, and epoll.

Hey folks! Today we’re diving a little deeper in the nodejs event loop (libuv) and looking at a bit of its Linux implementation. We’re also focusing on asynchronous IO using non blocking operations. We mention select vs poll vs epoll, libuv and the event loop phases. Sources: scottklement.com/rpg/socktut/nonblocking.html suchprogramming.com/epoll-in-3-easy-steps/ unix.stackexchange.com/questions/559039/why-does-epoll-use-a… idndx.com/2014/09/01/the-implementation-of-epoll-1/ Chapters Introduction Overview of the flow Threads concurrency model Nonblocking IO Select, poll, epoll epoll c code example libuv source code one more time outro

Why it's here

1 person recommends this

What people say. Recommended for its deep dive into how Libuv uses epoll under the hood for asynchronous I/O.

u/gabz90in r/node • Recommends

Why is node.js fast? Libuv & epoll & fcntl