Relative Content

Tag Archive for event-sourcing

Which events to store with event-sourcing?

I’m planning out the events that my application will be creating, but am running into problems with my design. I believe I’m not applying the event-sourcing concepts correctly.

In CQRS/ES, can a command create another command?

In CQRS/ES, a command is sent from the client to the server and routed to the appropriate command handler. That command handler loads an aggregate from its repository, and calls some method on it, and saves it back to the repository. Events are generated. An event handler/saga/process manager can listen to these events in order to issue commands.