Taming reactive node.js: Stream-oriented architecture with NestJS
summary
Shows a concrete migration from a layered REST service to a stream‑oriented CQRS/Event Sourcing design, with a working demo game endpoint where a hero slays dragons, dispatches commands, emits domain events and persists them to an event store. Uses NestJS command/event handlers and an saga using RxJS streams to emit drop‑item and drop‑coins commands. Claims NestJS saw 300% growth in 2018 and the example is demonstrated end‑to‑end and running.
AI-written summary · about
chapters (17)
- 0:00Intro
- 0:15TAMING REACTIVE NODE.JS: STREAM-ORIENTED ARCHITECTURE WITH NEST
- 3:12THINKING REACTIVELY
- 3:42READABILITY
- 3:57LOOSELY COUPLED ARCHITECTURE
- 4:07SELF-DESCRIBABLE
- 4:29DISADVANTAGES
- 4:56REDUX
- 5:34EXAMPLE
- 6:24LAYERED ARCHITECTURE
- 7:22SERVICE
- 10:58COMMAND HANDLER
- 13:57EVENT HANDLER
- 16:16MORE FEATURES
- 17:04ARTIFACTS
- 18:14COINS
- 20:52OPEN SOURCE
related talks
44mEvent Sourcing: Core Principles and Implementation in NestJS
38mBuild modern and scalable Node.js Web Applications with Nest
31mDeveloping Microservices with NestJS
46mAn API from scratch with NestJS
29mAdventures in Node and Nest
16mScalable event-driven applications with NestJS
41mArchitecture in Node.js using NestJS
28mLeveraging Angular in Node.js with NestJS
