~/talk

The Event Loop Fairytale

Talkat Infobip Shift 2023 · 2023-09-18..09-19· [javascript]
slides:none on file

Clear walkthrough of how Node.js actually schedules work: the event loop runs six-ish phases (timers, I/O callbacks, poll, check, close) while process.nextTick and microtasks run between phases, so you control ordering; console.log runs synchronously before timers; nonblocking I/O gets handed to the libuv thread pool (file reads, DB calls) and returns out of order; use setImmediate, setTimeout and promises deliberately and avoid blocking the loop — examples show when things reorder and why misusing nextTick slows the app.

AI-written summary · about

  1. 0:00Welcome and introduction
  2. 2:10The age of blocking dragons
  3. 4:37The rise of Node.js
  4. 6:03The land of promises
  5. 8:14Meet the event loop guardians
  6. 10:00How the event loop works
  7. 13:52The magic of libuv forest
  8. 17:47Understanding blocking dragons
  9. 18:52The six phases of the event loop
  10. 23:01Diving into loop phases
  11. 26:53Mastering microtask control
  12. 28:42Synchronous vs asynchronous calls
  13. 30:26The power and limits of tricks
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.