DEV Community

Discussion on: CQRS Scalable Aggregates

Collapse
 
maximegel profile image
Maxime Gélinas • Edited

You can still implement common business rules in the aggregate and invoke them from your commands/events. The main point is to follow the open/close principal by avoiding to edit the aggregate everytime you add a command/event. I developed this pattern in a project where we had a lot of commands/events. In that case putting everything in the aggregate was not an viable option.

Collapse
 
imlaoji profile image
LCG

Thanks to your answer, I probably understand what this practice is all about