Architecture
Event Sourcing
State is rebuilt from an append-only sequence of events instead of overwriting records.
Article
Event sourcing: store the facts, not just the latest state
State as a sequence of immutable events: streams, rehydration by folding, optimistic concurrency, projections, snapshots and event versioning. An aggregate and an event store in C# (Marten), TypeScript, Java, Go and Python.
Related articles
- CQRS: one model for changing, another for reading
Command Query Responsibility Segregation without overdoing it: from Bertrand Meyer's CQS, through three levels of CQRS, to projections and eventual consistency. Commands, queries and projections in…
- Event-driven architecture: who publishes, who listens and what can go wrong
Event-driven architecture in practice: Fowler's four meanings of "events", choreography and orchestration, delivery guarantees, the outbox, idempotent consumers, ordering and contracts. Code in C#,…
Challenges
Around the topic
- Microservices Pattern: Pattern: Event sourcing article · web · Chris Richardson (microservices.io)
- Wprowadzenie do Event Sourcing z Oskarem Dudyczem podcast · apple-podcasts · Patoarchitekci
- Greg Young - CQRS and Event Sourcing - Code on the Beach 2014 video · youtube · Code on the Beach
- The LMAX Architecture article · web · Martin Fowler
- oskardudycz/EventSourcing.NetCore repo · github · oskardudycz
- JasperFx/marten repo · github · JasperFx
- Event Sourcing using Cratis with Einar Ingebrigsten podcast · apple-podcasts · .NET Rocks!
- Event Sourcing Design Pattern podcast · apple-podcasts · Talk Python To Me
- Event Sourcing with Hannes Lowette podcast · apple-podcasts · .NET Rocks!
- Event Sourcing is Hard article · web · chriskiehl.com
- Event Sourcing Example & Explained in plain English video · youtube · CodeOpinion
- Projections in Event Sourcing: Build ANY model you want! video · youtube · CodeOpinion
- Datomic: Event Sourcing without the hassle article · web · vvvvalvalval.github.io
- Event Sourcing in 1 Hour with Marten in .NET video · youtube · CodeOpinion
- Event Sourcing: Rehydrating Aggregates with Snapshots video · youtube · CodeOpinion
- Kafka, GDPR and Event Sourcing article · web · Daniel Lebrero Berna
- Event Sourcing do's and don'ts video · youtube · CodeOpinion
- Event Sourcing (2017) article · web · arkwright.github.io
- Don't Let the Internet Dupe You, that's NOT Event Sourcing video · youtube · CodeOpinion
- Mistakes made adopting event sourcing (and how we recovered) - Nat Pryce - DDD Europe 2020 video · youtube · Domain-Driven Design Europe
- Event Sourcing: A New Dimension in Software Design presentation · web · Vladik Khononov
- Introduction to Event Sourcing ...and cqrs presentation · web · Vladik Khononov
- Microservice Patterns and Best Practices: Explore patterns like CQRS and event sourcing to create scalable, maintainable, and testable microservices book · openlibrary · Vinicius Feitosa Pacheco
- mizrael/SuperSafeBank repo · github · mizrael
- oskardudycz/EventSourcing.NodeJS repo · github · oskardudycz
- Extreme DDD Modelling Patterns presentation · web · Alberto Brandolini
- The Dark Side of Events (EDA) presentation · web · Vladik Khononov