KISS
summary
Defines event sourcing as an append-only log of past-fact events and shows a concrete cycle: read‑hydrate‑decide (handler reads a stream, replays onto an entity, entity returns events, append), with a casino wallet example (deposit, bet, wallet exchange) to demonstrate breaking streams instead of long replays. Recommends textual serialization first, primitives for messages, testing with "given events → when command → expect events", and operational patterns: snapshotting for hot paths, claim‑check for large files, and three strategies for uniqueness.
AI-written summary · about
chapters (25)
- 0:00Introduction to KISS
- 0:46Learning event sourcing basics
- 3:56Two personas in event sourcing
- 4:39Defining event sourcing
- 6:22Understanding streams and boundaries
- 8:13Namespacing and domain segregation
- 9:17CQRS and event sourcing
- 10:44Reasons to use event sourcing
- 13:35When to use event sourcing
- 15:01When not to use event sourcing
- 17:51Language choice for events
- 19:17Frameworks for event sourcing
- 20:45Event sourcing in practice
- 22:29Decider pattern in functional programming
- 24:13Replaying events explained
- 25:56Handling long streams
- 27:22Breaking streams in event sourcing
- 30:07Encoding and serialization
- 31:31Value objects in events
- 33:19Best things about event sourcing
- 36:55Testing with event sourcing
- 39:00Integrating with third parties
- 41:05Workflow sagas and process managers
- 42:32Handling files in event sourcing
- 47:28Ensuring uniqueness in streams
