Event Sourcing and Read Model generation

Personally I think there’s nothing wrong with looking up the user’s name from within the event handler. But if you’re in a position where you can’t query the name from the User’s read model then I’d introduce an additional event handler to QuestionEventsHandler, to handle the UserRegistered event. That way the QuestionEventsHandler could maintain its … 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)