Event-driven Revolutions: From Monolith to Event Sourcing in Practice
summary
A Node.js + TypeScript walkthrough that migrates a working monolith to an incremental event‑sourced design using four concrete events (OpenedCart, ItemAdded, ItemRemoved, CartConfirmed). It shows runnable code using EventStoreDB‑style streams to replay state and append events, builds SQL projections for analytics with subscribe‑and‑project handlers, and demonstrates migration via the strangler pattern plus correlation IDs for auditing and debugging.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 10:06Current architecture problems
- 15:02Event Sourcing basics
- 20:22Implementing Event Sourcing
- 28:55Rebuilding state from events
- 33:12Optimizing Event Store
- 36:23Projections and views
- 40:19Gradual migration
- 42:04Summary and benefits
related talks
28mEvent Sourcing a Node.js Application
24mHow To Combine Event Sourcing Architecture In Your Node.js Server
44mEvent Sourcing: Core Principles and Implementation in NestJS
22mTaming reactive node.js: Stream-oriented architecture with NestJS
37mPainless Testing of Event-Driven Architecture
43mPatterns for Reactive node.js Microservices
40mDeploying node.js at scale
33mTaking Node.js to The Ex-Stream: Stream to Scale
