Should Transactions Be Placed in the UseCase Layer or the Repository Layer?
AI features
- Views
- 386K
- Likes
- 765
- Reposts
- 80
- Comments
- 0
- Bookmarks
- 823
TL;DR
The author argues that transactions belong in the UseCase layer to support multi-aggregate updates and maintain the Repository's role as a collection abstraction, aligning with core DDD principles.
Reading the ENGLISH translation


