Daniel Dao

30%
Flag icon
Domain services make it easy to coordinate the work of multiple aggregates. However, it is important to always keep in mind the aggregate pattern’s limitation of modifying only one instance of an aggregate in one database transaction. Domain services are not a loophole around this limitation. The rule of one instance per transaction still holds true. Instead, domain services lend themselves to implementing calculation logic that requires reading the data of multiple aggregates.
Learning Domain-Driven Design: Aligning Software Architecture and Business Strategy
Rate this book
Clear rating
Open Preview