Callbacks to Async/Await in Node.js
summary
Shows that native ES6 promises catch up and often beat Bluebird: measured on Node 10 a ~200ms gap, on Node 12 native promises 1.1s vs Bluebird 1.96s; enabling async_hooks makes native promises much slower. Uses nvm, Node 10/12, Bluebird, async_hooks, Express and autocannon for load tests. Demo converts serial awaits into Promise.all parallelism (8 DB calls) and gets median latency down (16ms → 10ms), 97th percentile 41ms → 32ms and throughput 52 rps → 72 rps. Also ships a tiny JS Promise implementation that runs.
AI-written summary · about
chapters (16)
- 0:00Start
- 2:03Tamar Twena-Stern
- 5:33Node.js Architecture - Non Blocking 10
- 7:05Asynchronous Programming
- 7:39Asynchronous Code Example
- 8:10The Pyramid Of Doom
- 8:41Easy To Miss Error Handling
- 9:23Correct Error Handling
- 10:40What Is A Promise
- 11:19Promise - Explained
- 12:08Promises Code
- 12:36Promise Libraries
- 19:34What Is An Async Function
- 20:34Some Async Await Code
- 21:18Clear Error Handling
- 21:40Intermediate Values







