Oskar Dudycz

Pragmatic about programming

Theme

Topic

Event Sourcing

Start with the fundamentals, then move through modelling, business logic, projections, testing, evolution, and the situations where Event Sourcing is the wrong choice.

90 article

Recommended reading order

Read these in order to move from the foundations to practical trade-offs and production concerns.

  1. Introduction to Event Sourcing - Self Paced Kit

    2022-03-16For many developers, Event Sourcing is like a Nessie, most of them have heard of it, but not many have seen it. I was one of them. I started my journey with Event…
  2. What's the difference between a command and an event?

    2021-02-17What’s the difference between a command and an event? The answer seems apparent, but let’s see if it’s straightforward. The command represents the intention. It targets a…
  3. How to get the current entity state from events?

    2021-06-30Today I’d like to go back a bit to the basics of Event Sourcing. I recently realised that I often cover more advanced topics. So sometimes, it’s handy to take a step back…
  4. How to validate business logic

    2023-01-15Fox Mulder got advice: “trust no one”. I’m claiming that each software developer should define their level of paranoia. The thing that we should never trust is the…
  5. Guide to Projections and Read Models in Event-Driven Architecture

    2023-01-20If I had to choose the killer feature of Event Sourcing, I’d select projections. Why? I’ll explain that in detail in this article. Events are facts; they represent…
  6. Testing business logic in Event Sourcing, and beyond!

    2022-10-07I’ve heard a few times that Event Sourcing is hard to test. I’m not sure where this myth comes from; maybe from mixing it with event streaming. Event Sourcing logic is…
  7. Simple patterns for events schema versioning

    2021-12-08Events (schema) versioning is a boogeyman for people learning Event Sourcing. They’re a spooky tale told at the campfire. There’s a truth in it, as migrations are always…
  8. When not to use Event Sourcing?

    2021-06-23Event Sourcing is perceived as a complex pattern that’s challenging to learn. Typically it’s matched with the financial industry or big enterprise systems. If you’re…