New answers tagged cqrs
I done something similar to an event sourcing system only recently. The domain need to replay events in the correct order but also the domain model must not write an event to the store if another instance of the domain has just done so. I went with an optimistic concurrency approach. So the domain will retry its command and if it is still valid a new event ...
Top 50 recent answers are included