Clean up your Domain Model with Event Sourcing
I recently had a discussion with a developer who was new to Domain Driven Design, CQRS and Event Sourcing. They were using Greg Young’s Simple CQRS Example to create there own simple app as learning exercise. After taking a quick look at their aggregate root, one thing that immediately stood out to me was a class field that contained current state. Why this is interesting is because this field was not in any invariant. When I first started reading and exploring Event Sourcing, this was a big “ah ha!” moment for me. The realization that only certain data within my domain model was really important. We… Read More »Clean up your Domain Model with Event Sourcing