Questions tagged [domain-model]
A domain model is composed of the objects, behavior, relationships, and attributes that make up the industry that is the focus of development.
344 questions
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 ...
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 ...
-1 votes
1 answer
78 views
Complex domain problem to be modeled with DDD
There is a case management application. New requirements want to add statuses to cases. The case will go through a series of statuses until completion. Each case belongs to a case type. There are many ...
1 vote
1 answer
133 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 ...
0 votes
4 answers
422 views
Should I model constraints which are valid, but which have no current function in the domain?
When domain modelling, should a valid constraint - or "natural" constraint - be modelled, even if there are no current business processes which rely on the constraint being asserted. As an ...
0 votes
1 answer
145 views
Functional interfaces or decorator-like implementations [closed]
Consider Chess as an example. Say, we have a lot of domain objects that are alike, in this case chess pieces. I have two proposes to implementing the behaviour of chess pieces. Both uses the following ...
2 votes
3 answers
356 views
Is it necessary or "class obsession" (opposite to primitive obsession) to create classes for non-business fields?
I know there are some posts talk about primitive obsession : When is primitive obsession not a code smell?, Is "avoid the yo-yo problem" a valid reason to allow the "primitive obsession&...
1 vote
1 answer
662 views
Does calling an external API a part of transactional boundary
I have the following requirements : A player in an FPS Shooter game has health points, where he can take damage and regain health. One of the ways to regain health is by using a Health Booster that ...