Episode Summary
After reflecting on a recent 4-day event modeling and event sourcing workshop, Martin and Adam dive deep into storing events in relational SQL databases, using Git as an event store, DCB with Git tags, and what Google Trends reveals about event sourcing’s resurgence.
Main Discussion Points
- Workshop Retrospective — Reflections on a 4-day workshop split between event modeling (2 days) and event sourcing (2 days); challenges mixing beginners with experienced practitioners
- Workshops as the Start of a Journey — A workshop on event modeling is like a class on riding a bike — it starts you on the path; real expertise comes from years of practice
- Unlearning CRUD Patterns — The core mental shift: moving from coupled persistence-layer thinking to a world where the event store is the single source of truth
- Event Sourcing in SQL — Detailed exploration of modeling an event store with relational tables; one table per event type plus a master ordering table; cross-table indexing challenges
- Temporal Limits of SQL — SQL’s indexing model is fundamentally poor for temporal/time-series queries; tracking “all open orders” requires materialised views or external indexes
- Git as an Event Store — Martin’s experiments using Git with orphan branches as streams; using
git log -S(pickaxe search) for blazing-fast event type queries - Git Tags as DCB Markers — Using Git tags as stationary pointers to implement Decider-style Causal Boundary (DCB) concepts
- Event Sourcing Resurgence — Google Trends shows event sourcing interest is climbing to new highs driven by AI spec-driven development
- Mixed Workshop Audiences — Experienced attendees came looking for edge cases; beginners needed foundational concepts — a useful but challenging dynamic
Workshops as the Start of a Journey
“You have to unlearn many years of previous patterns. Think of a half-hour class on learning to ride a bike — the workshop’s not going to teach you to ride the bike.” - Adam
Git as an Event Store
“Git log -S — the pickaxe search — is blazing fast. You can search a million commits within the blink of an eye.” - Martin
The Dysfunction of the Industry
“The dysfunction of the industry — I can’t see how they’re going to have AI magically solve inherently bad practices.” - Adam
Key Takeaways
- Workshops start the journey, not complete it — Real expertise comes from years of practice beyond the workshop
- CRUD unlearning is the hardest challenge — The core mental shift takes time; workshops begin but don’t complete the process
- SQL is fundamentally limited for event sourcing — Temporal/time-series queries require materialised views or external indexes
- Git is a surprisingly capable event store — Orphan branches as streams, pickaxe search for blazing-fast queries
- Git tags enable DCB-style consistency — Stationary pointers implement Decider-style Causal Boundary concepts
- Event sourcing interest is resurging — Google Trends shows climbing interest driven by AI spec-driven development
- Mixed audiences create productive tension — Experienced and beginner attendees challenge each other productively
- Community discussion drives real learning — Shared exploration of edge cases builds deeper understanding
Learn Event Modeling from the experts
Join the Event Modeling Hands-On Workshop on March 16/17 — learn how to design systems that are honest from the start.
Want to learn how to apply Event Modeling and Event Sourcing in practice?
Follow the Online Course “Implementing Eventsourcing” - comes with a Lifetime Event Modeling Toolkit License.
