Node.Js Event Loop
I think I had some notes about this earlier, but I can’t find them anymore. Collecting a bunch of resources again for the next time I inevitably forget how the event loop works.
I thought I had some articles saved that were helpful for me when I was learning this stuff, but I can’t find them anymore. In any case, I think I remember these being useful for me:
- Keunwoo has a lot of nuggets of useful wisdom scattered across Slack. I have this post saved.
- The Node.js Event Loop
- Understanding the Event Loop, Callbacks, Promises, and Async/Await in JavaScript | DigitalOcean
- javascript - Difference between microtask and macrotask within an event loop context - Stack Overflow
More links from Keyhan (some of these are similar to the ones above):
- https://nodejs.org/en/docs/guides/blocking-vs-non-blocking/ “Overview of Blocking vs Non-Blocking” - basic discussion of sync/async
- Event loop
- https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/ - event loop intro
- https://nodejs.org/en/docs/guides/dont-block-the-event-loop/ - more performance-focused event loop intro
- https://medium.com/airtable-eng/node-js-performance-event-loop-and-network-i-o-part-1-ed66076109d3 and https://medium.com/airtable-eng/investigating-node-js-performance-event-loop-and-network-i-o-part-2-e9d1a8d4da8a - more event loop intro & also discusses our architecture
Notes I took on some of these articles:
- “Don’t Block the Event Loop (or the Worker Pool) | Node.js” 202301260138
- “Overview of Blocking vs Non-Blocking | Node.js” 202301260139
- “Node.js multithreading: Worker threads and why they matter - LogRocket Blog” 202301260141
uid: 202301252231 tags: #airtable #javascript #programming #blog-ideas