Event Sourcing
Spicy — senior dev territoryArchitecture
ELI5 — The Vibe Check
Instead of storing 'balance: $100', event sourcing stores 'deposited $200, withdrew $50, withdrew $50'. The current state is derived by replaying events from the beginning. It is like git for your data — full history, replay to any point in time, and derive projections. The downside: complexity that will humble you.
Real Talk
undefined
When You'll Hear This
undefined
Related Terms
Command Pattern
Every action in a text editor is a Command object: TypeTextCommand, DeleteWordCommand, BoldCommand.
intermediateArchitecture
CQRS
CQRS says: the way you write data and the way you read data should be separate systems. Writing (commands) goes to one model optimized for transactions.
advancedArchitecture
Observer Pattern
Think of a newsletter. You (the publisher/subject) publish content. Your subscribers (observers) automatically get notified when new content arrives.
intermediateArchitecture