Fork me on GitHub

In CQRS, in the commands processor, assuming your state in a domain model in memory, do you usually produce a new state somehow and then produce corresponding events, or do you first produce the events and then apply them to the current state? How do you reconstruct the in-memory model on system start?


You replay the events (from a storage)