Skip to main content

Stack Exchange Network

Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [domain-driven-design]

Domain-driven design (DDD) is an approach to develop software for complex needs by connecting the implementation to an evolving model.

Filter by
Sorted by
Tagged with
0 votes
2 answers
183 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 ...
Ryley38's user avatar
  • 111
1 vote
2 answers
220 views

How to Handle Data Persistence In Domain Driven Design

I am currently reading about domain-driven design and n-tier architecture with a service layer, and comparing them to try to understand how each architecture is executed. For n-tiers (specifically 3-...
Errors for life's user avatar
0 votes
2 answers
145 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 ...
Bernardo Benini Fantin's user avatar
2 votes
2 answers
132 views

When using Clean Code with Ports and Mappers: which layer declares the Entity (Aggregate) factory interface and which one implements it?

So I was reading Eric Evans DDD book and one point that was not clear to me is which Layer (in case of using Clean Code) should be reponsible to: define the interface contract for an Entity (...
Prometheus's user avatar
1 vote
3 answers
446 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 ...
Bernardo Benini Fantin's user avatar
4 votes
2 answers
302 views

Managing Growth in Microservice Architecture: Is Modular Monolith the Solution?

Our team of 5 members are managing a microservice architecture that currently includes around 200 Java Spring boot microservices, with approximately 50 new services being added each year. We follow ...
User1254's user avatar
5 votes
3 answers
604 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 ...
Bernardo Benini Fantin's user avatar
5 votes
2 answers
217 views

Tree model in Domain Driven Design

A site is composed of pages. Each page is either a root page or the child of another page, forming a parent–child hierarchy. The page tree has a fixed maximum depth. When relocating a subtree: The ...
Dante's user avatar
  • 161
4 votes
4 answers
226 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. ...
Afelium's user avatar
  • 51
1 vote
2 answers
146 views

Dividing an HR Application into Bounded Contexts: Understanding How to Split a Domain into Multiple Models

I’m trying to understand bounded contexts by trying to apply them to an example HR application. According to a book called Patterns, Principles, and Practices of Domain-Driven Design (PPPDDD), context ...
EMN's user avatar
  • 795
2 votes
3 answers
276 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 ...
Mog0's user avatar
  • 147
0 votes
1 answer
158 views

How do I encapsulate domain logic and preserve state in DDD+Clean Architecture?

(For context I am developing in Angular) Historically my applications have tended towards the layered architecture that the Angular fraemwork leads you into. However I feel that the next application I ...
royneedshelp's user avatar
3 votes
5 answers
193 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 "...
EMN's user avatar
  • 795
3 votes
3 answers
217 views

Is it good DDD practice to hide all the aggregate methods behind domain services?

I'm working on a DDD-based system and was researching the best way to handle domain services and keep business logic consistent. During my research, I came across this insightful quote from Steve ...
Mr_Sure21's user avatar
1 vote
0 answers
78 views

DDD infrastructure layer project type

I’m working on a DDD-based architecture using WPF. Currently, my Domain, Application, and Infrastructure layers are all implemented as .NET Standard projects, though I’m not certain if that’s the best ...
Stelios's user avatar
  • 235

15 30 50 per page
1
2 3 4 5
112
Morty Proxy This is a proxified and sanitized view of the page, visit original site.