Главная
Study mode:
on
1
Observing Node.js James Snell
2
What's happening inside?
3
Your Challenge: In what order will the statements be printed?
4
Four Critical Concepts
5
The Microtask Queue
6
The event loop executes only one task at a time.
7
When JavaScript is running the Event Loop is not
8
Event Loop Delay
9
JavaScript is not asynchronous.
10
Bootstrap » Main Event Loop
11
Bootstrap: Node.js loads it's own JavaScript...
12
Main: Node.js loads and executes user code...
13
Event Loop: Started after main scope exits...
14
First Rule of Node.js Performance: Know when your code is running
15
Async Hooks
16
Bubble Profiling
17
Bootstrap Trace Events
18
Trick Question: Are Promises Asynchronous?
19
Trick Question: Do Promises execute concurrently?
Description:
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.

Observing Node.js

JSConf
Add to list