5 architectures of asynchronous JavaScript
summary
Covers the actual mechanics behind asynchronous JavaScript and compares 5 approaches: callbacks, events, promises, coroutines, reactive streams with concrete code patterns and gotchas. Explains event loop and run to completion rule, shows Promise.all, Promise.race and Promise.any behavior, demonstrates chaining vs parallel execution, implements generators + promises as coroutines (async/await equivalent), sketches CSP channels for coroutine communication and contrasts RxJS streams. Good if you want hands‑on examples of when each technique fails or scales.
AI-written summary · about
chapters (11)
- 0:00Introduction to async JavaScript
- 4:52Event loop and message queues
- 14:05Synchronous vs asynchronous callbacks
- 24:56Callback and event-driven architectures
- 30:19Promise architecture and chains
- 41:55Promise aggregates and real-life examples
- 44:28Generators and co-routines
- 51:42Async/await in ES8
- 53:25CSP and communicating processes
- 56:35Reactive streams with RxJS
- 1:01:50Summary and Q&A
related talks
57m5 architectures of asynchronous JavaScript
40m5 architectures of asynchronous JavaScript
30mActually Understanding Asynchronous JavaScript
32mThe Evolution Of Asynchronous Javascript
42mBeyond Promises: Async Patterns in JavaScript
25mAsynchrony: Under the Hood
41mNext Generation Asynchronous Patterns in JavaScript
23mAsync JS
