Why are commands and events separately represented?

Commands can be rejected. Events have happened. This is probably the most important reason. In an event-driven architecture, there can be no question that an event raised represents something that has happened. Now, because Commands are something we want to happen, and Events are something that has happened, we should be using different verbs when … Read more

CQRS: Command Return Values [closed]

Following the advice in Tackling Complexity in CQRS by Vladik Khononov suggests command handling can return information relating to its outcome. Without violating any [CQRS] principles, a command can safely return the following data: Execution result: success or failure; Error messages or validation errors, in case of a failure; The aggregate’s new version number, in … Read more

Using an RDBMS as event sourcing storage

The event store should not need to know about the specific fields or properties of events. Otherwise every modification of your model would result in having to migrate your database (just as in good old-fashioned state-based persistence). Therefore I wouldn’t recommend option 1 and 2 at all. Below is the schema as used in Ncqrs. … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)