Design Patterns · Senior · Question 30 of 75
What is an Aggregate in DDD?
- ✓Correct answer: A group of objects with a root through which changes go
- 2An SQL query with
GROUP BYand aggregate functions - 3Combining several React components into one
Explanation
For example, an order with line items: items can be changed only through Order, which enforces invariants (total, limits). An aggregate is a consistency and transaction boundary.