What Belongs to the Aggregate Root

前端 未结 7 1397
温柔的废话
温柔的废话 2021-01-30 05:43

This is a practical Domain Driven Design question:

Conceptually, I think I get Aggregate roots until I go to define one.

I have an Employee entity, which has sur

7条回答
  •  走了就别回头了
    2021-01-30 05:55

    a slightly orthogonal question to test understanding here, going back to Order...OrderItem example, there might be an analytics module in the system that wants to look into OrderItems directly i.e get all orderItems for a particular product, or all order items greater than some given value etc, does having a lot of usecases like that and driving "aggregate root" to extreme could we argue that OrderItem is a different aggregate root in itself ??

提交回复
热议问题