Employing CQRS and Event Sourcing to Build an MVP
summary
Uses CQRS and event sourcing to build an MVP CRM with React + Redux, Material UI, PHP, MySQL and a custom event store and CQRS infrastructure; a three‑person team ships an API‑driven SPA but development takes six months. Read model rebuilds grow from 30 seconds → 10 minutes as events multiply; event versioning, serializer bugs and heavy migrations cost time. Wins are search and timeline worked well and retroactive queries, but the MVP fails to sell after a business pivot.
AI-written summary · about
chapters (32)
- 0:00Intro
- 0:14Command / Query Responsibility Segregation
- 7:01MVP Criteria
- 8:23Single Page Application
- 8:57Material Design Material-UI
- 9:17Internal Framework API + CLI + Container
- 9:33Internal ES+CQRS Infrastructure
- 9:47The Cowboy
- 11:11Testing
- 12:05Choose Boring Technology Dan McKinley
- 12:27three innovation tokens
- 15:23Best case? 5 Tokens
- 16:29It felt like a desktop application
- 18:38Catch-22
- 19:02Reflection Properties Serializer
- 19:55Search Read Model Awesome!
- 20:27History Read Models
- 22:36Lazy Upcast
- 24:48Replaying events broke on some changes
- 26:21Nuclear Option Rebuild ALL Read Models
- 27:24False sense of security Rebuilding Read Models became expensive
- 27:49Rebuilding Read Models while app was active
- 29:17Swap new repository for old repository
- 29:35Solution! Follow Store
- 30:11Rebuilding Read Models!
- 32:51Biggest Takeaway? Slower Development.
- 34:09Retroactive Features
- 35:05Natural Evolution
- 35:42Event Sourcing makes sense if the Model is known and stable How often is that the case for an MVP?
- 37:28Test Harness
- 38:51Support From Management
- 39:40Pivot changed everything
