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.
1,637
questions
0
votes
1
answer
100
views
How to Model Parent-Child relationships outside of Aggregates
I am developing an application with many Parent-Child relationships which are leaving me with some modeling questions. Before I ask, let me give you some context:
No aggregates
While I am trying to ...
0
votes
1
answer
80
views
Data Driven UI - event handling
Currently in our web app, we have forms which define model and view in JSON (in-house library) on the client side. Example:
And there is a component for each form, which has
event handling logics ...
0
votes
1
answer
81
views
How to share transaction across multiple repositories in DDD?
We are trying the Domain Driven Development (DDD) while working on a project.
We've got a Product aggregate.
We've got a ProductRepository to load/save Products.
We've also got a Timeline aggregate, ...
0
votes
2
answers
95
views
Modeling value object when fields' existence depends on state of other fields
I am practicing tactical DDD and having trouble as exemplified below. Fundamentally, whether some fields of the value object should be nullable depends on another field of the same value object. ...
1
vote
1
answer
75
views
Aggregate design for a fuel tank with deliveries and fill level readings
So I've got a rather simple, mostly crud application I want to use DDD with, to learn/practice it. I wonder about aggregate design regarding a fuel tank entity. Each tank stores fill level readings (...
4
votes
3
answers
218
views
How to handle events representing cross-domain knowledge
I've been looking at DDD lately as part of playing with Spring Modulith, and I'm getting hung up a bit on how to approach events which cross between contexts.
To provide a concrete example based on a (...
0
votes
2
answers
97
views
Where perform mapping in strict Domain-Driven Design?
I want to create an example application where we use a strict domain-driven design and layering (controller, service, repository). Most notably, we have a clear distinction between the domain and the ...
1
vote
3
answers
167
views
Don't domain events violate "aggregate = transactional boundary"?
The conventional implementation of "domain events" in DDD as formulated in lots of articles (such as this one, this one, and this one), seems as though it's at odds with DDD. Because the ...
-1
votes
1
answer
98
views
Passing In-Memory Specification to Repository
I am working on my DDD know-what/how and have the following questions related to the Specification Pattern, the Repository Pattern, persistence agnosticism, and performance.
Consider, for the sake of ...
2
votes
1
answer
181
views
How Should Bounded Contexts Interact with a Central Tenant Context in DDD?
I have a question regarding bounded contexts in DDD terms.
Let's assume that I have bounded context called Tenant (With Tenant Admin who can create Tenant Member), Library (With Reader, who can just ...
2
votes
3
answers
218
views
How to tackle synchronizing large amounts of data across services in an efficient way?
I am working at a retailer with a deep catalog of products and we are taking stock of our architecture.
Currently, we use microservices, but all product information goes to a service that is getting ...
1
vote
2
answers
120
views
DDD Model to handle Localizations
I'm trying to refine my domain model for the internationalization feature, I wanted to get your input on the best approach to structuring Culture and Localization entities following Domain-Driven ...
1
vote
0
answers
99
views
DDD -Can an aggregate consumes its own events?
I'm facing to an issue with my design in DDD with "Always valid Domain Model" principale and eventual consistency.
I have an aggregate with several public methods to mutate its state.
class ...
1
vote
1
answer
96
views
Is providing a method of a domain entity with a data/ service provider object a bad design?
I have an entity called User, and it has a method to change the user's email address. I'm using a strongly typed object for representing the email address.
public class User: BaseEntity
{
// Some ...
1
vote
3
answers
135
views
DDD: big immutable item with some references to entity identifiers, should it be value object or entity?
Let's say I have a Mail, this mail have many properties given by the constructor (for example, 10-15 parameters).
This mail can't be edited (immutable), the user has specifically requested to send ...