Overview
Syllabus
Observing Node.js James Snell
What's happening inside?
Your Challenge: In what order will the statements be printed?
Four Critical Concepts
The Microtask Queue
The event loop executes only one task at a time.
When JavaScript is running the Event Loop is not
Event Loop Delay
JavaScript is not asynchronous.
Bootstrap » Main Event Loop
Bootstrap: Node.js loads it's own JavaScript...
Main: Node.js loads and executes user code...
Event Loop: Started after main scope exits...
First Rule of Node.js Performance: Know when your code is running
Async Hooks
Bubble Profiling
Bootstrap Trace Events
Trick Question: Are Promises Asynchronous?
Trick Question: Do Promises execute concurrently?
Taught by
JSConf