Persisting changes as Events

Now we have implemented the persistence of our domain and read models, we can start to revisit the implementation so that we can switch over to an event-sourced domain model instead. We need a way to store and retrieve new events so I have added a private property and exposed a read-only collection as well… Continue reading Persisting changes as Events

Implementing persistence and setting up integration tests along the way

So far, we've used fake repositories in our tests, now it's time to have an actual implementation of how we want to persist our data. The goal is to be able to add entries when our application is running, and even if the application restarts, it should still have this data. In order to be… Continue reading Implementing persistence and setting up integration tests along the way

TDD of the Domain Model, building a registration app

In the last post we did a TDD walk through building the application but we didn't really get into the event sourcing side of things, which was the original intent of this series. I only recently read about Event Sourcing through the book Understanding Eventsourcing by Martin Dilger. It goes into a lot of detail,… Continue reading TDD of the Domain Model, building a registration app

Trying out TDD, building a registration app

From the last post, I decided to to rename my Aggregate to Individual to align more with a ubiquitous language, a key component of DDD. 😉 I also updated the read model to contain a list of multiple batch statistics so the api would return a single object and not an array of objects. One… Continue reading Trying out TDD, building a registration app

Experiments with Event Modeling, building a Registration App

I have been reading "Understanding Eventsourcing" by Martin Dilger and got inspired to update my wishlist app to use event sourcing. I managed to do it in a branch but then I stopped because I also wanted to see how feasible it would be to start a project from scratch. My highschool batch is now… Continue reading Experiments with Event Modeling, building a Registration App