All Questions
Tagged with ddd or domain-driven-design
1,678 questions
1 vote
1 answer
106 views
How should I design a password reset flow when the PasswordService depends on UserRepository (email vs ID)?
I’m working on a three layers architecture backend (Laravel). Here’s the context: I have a PasswordService responsible for updating a user’s password. and a Otpservice responsible for verifying/...
0 votes
2 answers
203 views
Keeping the impact of changes low when moving shared domain objects into a library
I’m refactoring a microservice project where multiple services share the same domain objects. Over time, these objects have diverged across services, causing inconsistencies. To solve this, I plan to ...
0 votes
2 answers
175 views
How could I map a complex DTO to a Domain Aggregate in a Repository?
I'm working on a TypeScript application designed with DDD and using layered architecture. My infra layer has a repository that fetches a complex, nested DTO. My current implementation maps this DTO ...
1 vote
3 answers
469 views
Practicing DDD from the biggest modules to the smallest widgets
I have a frontend project using VueJS and TS and I structured it using DDD. So far, I have some modules (bounded contexts, domains - use the term you prefer) which are used in two ways: some modules ...
5 votes
3 answers
666 views
How to get rid of Mappers and make objects build themselves?
I am having a really hard time deciding where to instantiate my entities in the refactoring I am making. The project was built with DDD and it's layered: it has the infra, domain and app layers. In ...
4 votes
4 answers
248 views
Modeling superstate and substate combinations in DDD
I am designing an analytics application using domain driven design and test driven development. I am having difficulty modeling the following requirement: The application shows a workitem's state. ...
2 votes
3 answers
326 views
DDD and Domain Models with a Web Api PUT / POST
The company I'm working at has strict policies that insist that all business logic is contained in Domain Models as part of DDD. I can see how this approach could work well for something like a ...
3 votes
5 answers
214 views
DDD - When a single physical entity in the problem space is represented as different concepts in code, how to link them together?
When a single physical entity means different things in different contexts, DDD principles recommend creating different entities in each bounded context. This is an example taken from the book "...