Thinking Reactive in JavaScript
summary
Reactive programming produces streams that are mapped, filtered, merged and folded instead of mutated values, and the claim is measurable: switching to streams yields simpler, more testable code and modest performance gains versus promises. Examples use RxJS, tiny cores like xstream and the Cycle ecosystem with Cycle.js drivers, show buffering clicks and HTTP streams, and demonstrate a real monitoring app querying and rendering 300 graphs for 300 microservices successfully. Tradeoffs: steeper learning curve, smaller community, not worth it for simple sites.
AI-written summary · about
chapters (11)
- 0:00Introduction and motivation
- 3:14Defining reactive concepts
- 6:34Benefits of reactive coding
- 10:07Libraries for reactivity
- 11:38Reactive patterns in React
- 14:01Introduction to Cycle.js
- 16:58Architecture and drivers
- 20:22The MVI pattern
- 25:33Handling side effects
- 29:57Constraints and conclusion
- 34:20Q&A session
