CQRS and CRUD screens

前端 未结 3 1893
暗喜
暗喜 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条回答
  •  旧时难觅i
    2020-12-30 01:14

    CustomerHasMoved is the event that is fired after you have updated the customers location. This event updates the read databases/cache databases. The command from the gui should be MoveCustomer or something like that. I think I would put the update of the customer name in a command like UpdateCustomer.

提交回复
热议问题