Event Sourcing and SQL Server multiple relational tables

别等时光非礼了梦想. 提交于 2019-12-05 05:28:08

Yes, you can use whatever you need in a particular read model implementation but you need to take into account that a read model should be rebuildable at any time. So, when a read model is re-builded it may use other surrogate IDs or you just implement it in such a way that every time it gets the same IDs (I'm referring to the Autoincrement feature).

P.S. why don't you try to denormalize your data? In event sourcing is common to avoid using join instead of making them faster in the read model.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!