Event sourcing in a long run
summary
Explains event sourcing as storing immutable domain events that rebuild aggregate state via a simple AggregateStore abstraction (load events, apply when handlers, save new events), demonstrates C#-style code and EventStoreDB behaviors (cannot mutate mid-stream, can truncate or append), shows CQRS projections into Mongo/Elastic for fast reports, cites real-scale pain (systems approaching two billion records), recommends compensating events over direct edits and warns against using an Event Bus as the primary link between store and projections.
AI-written summary · about
