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
MongoDB for Node.js DevelopersMongoDB University Introduction to Office 365 Development and APIs
Microsoft via edX Server-side Development with NodeJS
The Hong Kong University of Science and Technology via Coursera Front-End Web UI Frameworks and Tools
The Hong Kong University of Science and Technology via Coursera Introduction to MongoDB using the MEAN Stack
MongoDB via edX