Ivan Tulup. Async mess in JS under the hood
summary
The talk explains JavaScript’s single-threaded but deeply asynchronous model by unpacking the event loop, including the difference between tasks and microtasks, browser task prioritization, and the relevant specification details. It also compares how the event loop works in Node.js versus browsers and gives practical guidance on using async behavior safely.
AI-written summary · about
chapters (18)
- 0:00Introduction
- 1:03What is Event Loop
- 2:27How heartbeat works
- 4:13Macrotasks and microtasks
- 6:44Queues and execution order
- 8:32Splitting long tasks
- 10:58Event Loop in Node.js
- 12:22Event Loop phases in Node.js
- 14:50Task splitting issues
- 17:20What are microtasks
- 19:07Recursive microtasks danger
- 20:53Call stack and microtasks
- 23:22Sync vs async execution
- 26:15When microtasks run
- 27:00Why process.nextTick
- 29:28Node.js async APIs
- 30:11Learning resources
- 30:52Q&A
related talks
18mEvent loop and asynchrony in JavaScript
23mAsync JS
30mActually Understanding Asynchronous JavaScript
25mAsynchrony: Under the Hood
41mThe Eventloop in JavaScript - How does it work?
32mThe Evolution Of Asynchronous Javascript
46mAsynchronous JavaScript and non-concurrency
39mV8 — Inside Asynchrony and OS Interactions
