CQRS without Event Sourcing - what are the drawbacks?

前端 未结 6 1652
渐次进展
渐次进展 2021-01-30 21:04

Besides missing some of the benefits of Event Sourcing, are there any other drawbacks to adapting an existing architecture to CQRS without the Event Sourcing piece?

I\'m

6条回答
  •  滥情空心
    2021-01-30 21:37

    There is a fundamental problem of Event Sourcing pattern, that is the events in the Event Store may not be compatible with your event handlers in your application any more due to code change.

    That being said, whenever you modify the event handler by adding new features, you need to think about the backward compatibility. You have to make sure your code can always handle the same event in different stage created by different version of your code.

    When your application becomes more complex, you will find it really pain in the ass to make it backward compatible.

提交回复
热议问题