CQRS: Read model built on demand?

[亡魂溺海] 提交于 2019-12-04 05:18:36

CQRS does not require that the read model is stored in separate tables (or documents if you use a document database), although this often is a good approach and works well in combination with event sourcing. A read model can be backed by a database view or ORM query for instance.

This might be a good approach when introducing CQRS to parts of a legacy system.

The approach you're suggesting here has been suggested before, for instance see this post by Ayende; I think it's called "thin read model" or similar. I'd say go for it.

You might be interested in reading

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