nodejs-event-loop-presentation
nodejs-event-loop-presentation copied to clipboard
Presentation slides and demo examples for the Node.js event loop
Node.js Event Loop Presentation
This repo contains slides and demo examples for my talk "Understanding the Node.js Event Loop" that I presented at the Node.js Global Summit 2022 on May 18, 2022.
I'll also be presenting this at UtahJS on September 23, 2022 with the talk title "A Deep Dive Into the Node.js Event Loop."
.png)
Using This Repo
The demos directory contains several files. Each file is an independent demo that you can run with Node.js. For example:
node demos/01-synchronous.js
Try to guess the order in which the functions will be executed before running each example.
Resources
Node.js Docs
- Introduction to Node.js
- Blocking vs. Non-Blocking Code in Node.js
- Timers in Node.js
- The Node.js Event Loop
- Don't Block the Event Loop
Articles
- Understanding the Node.js Event Loop
- Understanding the Node.js event loop phases and how it executes the JavaScript code
- Node.js Event Loop (Geeks for Geeks)
- JavaScript Event Loop (JavaScript Tutorial)
- The event loop (MDN)
- Microtasks
- Promises, Next-Ticks, and Immediates