Observing Node.js
Offered By: JSConf via YouTube
Course Description
Overview
Explore tools and techniques for observing and understanding the inner workings of Node.js processes in this conference talk from CascadiaJS 2018. Dive into four critical concepts including the microtask queue, event loop, and JavaScript execution. Learn about event loop delay, the bootstrap process, and main event loop. Discover the first rule of Node.js performance and gain insights into async hooks, bubble profiling, and bootstrap trace events. Examine tricky questions about Promises and their execution, enhancing your understanding of Node.js internals and improving your ability to optimize application performance.
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
Related Courses
Deno - Next Generation JavaScript RuntimeJSConf via YouTube How I Got 1600 Stars on GitHub in 2 Months of Open Source Work
JSConf via YouTube Is it Okay to Pursue Functional Programming on Frontend - JSConf Korea
JSConf via YouTube If - Extensible Design - Return "Work Life Balance"
JSConf via YouTube React x Web Components - How It Is and How It Could Be
JSConf via YouTube