Comparing Promises, Observables, and Signals
summary
Compares concrete behaviors: Promises fit single-value HTTP use cases and show a fetch example with fetch + AbortController for cancellation; Observables (RxJS) handle zero-to-many streams, demoing interval, fromEvent, subscribe/unsubscribe and operator combos like mergeMap/switchMap and take/takeUntil to avoid leaks; Signals are synchronous computed values that deliver glitch-free updates and memoization for UI state, with Angular examples converting signals↔observables for backend calls. Practical tradeoffs and specific code patterns are emphasized.
AI-written summary · about
chapters (9)
- 0:00Reactive primitives intro
- 1:30Pyramid of doom with promises
- 5:45Promises for HTTP and cancel
- 6:49Observables for multiple values
- 11:04Observables cancel and leak risks
- 12:28Operators for observables
- 18:11What are signals
- 22:24Signals in Angular
- 23:49Choosing between primitives








