Managing Async With Observables
summary
Describes RxJS 5 as a replacement for promises with built‑in cancellation and laziness, demonstrates switchMap to abort stale AJAX calls (visible as canceled XHRs in Chrome), and shows a working multiplex WebSocket demo with automatic reconnect and replay. Benchmarked with micro and macro tests: overall operators run ~5× faster in V8 on average (≈3× on ultra‑low‑end devices), with flatMap ~10×, do ~20×, from/of ~10–17×, and switchMap ~9× faster. Also documents modular imports, recursive scheduling by default, and reduced closures for performance.
AI-written summary · about
chapters (11)
- 0:00Intro
- 8:30Iterable
- 14:00Cancellation
- 16:49Operators
- 20:29Merge All
- 24:45Switch
- 33:06Performance
- 35:22Scheduling
- 36:05Recursive Scheduling
- 39:49Closures
- 41:08Performance Improvements








