Event Sourcing and Read Model generation

前端 未结 3 1688
时光说笑
时光说笑 2021-01-30 14:08

Assuming Stack Overflow domain problem and the following definition of events:

UserRegistered(UserId, Name, Email)
UserNameChanged(UserId, Name)
QuestionAsked(Us         


        
3条回答
  •  梦如初夏
    2021-01-30 14:20

    Just enrich the event with all the necessary information.

    Greg's approach, as I recall, - enrich the event while creating and store/publish it this way.

提交回复
热议问题