// the find
oskardudycz/EventSourcing.NetCore
Examples and Tutorials of Event Sourcing in .NET
A large, well-maintained collection of Event Sourcing and CQRS examples in .NET, covering Marten, EventStoreDB, Kafka, and various architectural patterns from beginner to advanced. Actively updated and backed by an author who clearly uses this stuff in production. Targeted at .NET developers who want concrete, runnable code rather than abstract theory.
- Covers both Marten and EventStoreDB side-by-side, so you can compare approaches rather than being locked into one vendor's tutorial
- Self-paced workshop structure with exercises (IntroductionToEventSourcing, BuildYourOwnEventStore) that actually build understanding incrementally, not just cargo-cult the pattern
- Production-relevant concerns are included: event versioning/upcasting, GDPR/crypto-shredding, outbox pattern, distributed sagas, optimistic concurrency, OpenTelemetry integration - not just happy-path demos
- CI is green and the repo was pushed to in 2026, meaning the code targets current .NET and doesn't rot with outdated package versions
- The repo is enormous and sprawling - 12+ samples, workshops, integration tests, and core libraries all in one monorepo with no clear 'start here for a new project' entry point beyond reading the wall-of-text README
- Heavy Marten bias throughout; EventStoreDB samples are thinner and some patterns (e.g., async projections) only have Marten implementations, which skews the comparison
- The shared Core/* libraries (Core.Marten, Core.EventStoreDB, etc.) are real infrastructure code but have minimal documentation and aren't published as stable NuGet packages you'd actually depend on - they exist mainly to reduce duplication across samples
- Some older samples (MeetingsManagement, Cinema Tickets) look stale compared to the newer Helpdesk sample and use different conventions, which creates confusion about what the 'current' recommended approach is