5 architectures of asynchronous JavaScript
summary
Covers five concrete async architectures and when to use each: callbacks, events, promises, coroutines, reactive streams. Explains the event loop and run-to-completion rule, then shows promise limits (greedy, single-value, not cancelable), how generators+promises form coroutines, and why async/await is the language bridge that restores linear code and local variable access. Demonstrates concurrency patterns with Promise.all vs Promise.race, and recommends RxJS-style reactive streams for ongoing, interdependent event flows like realtime UIs.
AI-written summary · about
chapters (9)
- 0:00Start
- 4:48sync vs async
- 15:59callbacks
- 25:49Callback hell
- 35:03Sequential Processing
- 36:13Concurrent Processing
- 37:48Promise Aggregates
- 41:46Generators vs run to completion
- 51:55Pipeline scope using data from previous steps
related talks
01h 04m5 architectures of asynchronous JavaScript
40m5 architectures of asynchronous JavaScript
30mActually Understanding Asynchronous JavaScript
42mBeyond Promises: Async Patterns in JavaScript
32mThe Evolution Of Asynchronous Javascript
25mAsynchrony: Under the Hood
41mNext Generation Asynchronous Patterns in JavaScript
23mAsync JS
