CQRS and CRUD screens

前端 未结 3 1902
暗喜
暗喜 2020-12-30 00:25

One of the basic tenets of CQRS, as I understand it, is that commands should be behaviour-centric, and have a value in the business or the UL, and not data-centric, ie., CRU

3条回答
  •  心在旅途
    2020-12-30 00:54

    I just want to put a comment on this quickly as it popped up.

    It is important to note that some objects are actually CRUD and thats ok. I may not really care why a name is changing in my domain where I ship products to people and only need that data to print mailing labels. The trick is in making behavior the default and THEN reverting to a CRUD interface once you are sure you really don't care about the reasons as opposed to vice versa.

    Greg

提交回复
热议问题