All Questions
Tagged with patterns-and-practices domain-driven-design
9 questions
2
votes
1
answer
3k
views
DDD: Can application services throw domain errors?
I'm new to DDD and I trying to create an API using DDD concepts for study purposes. Today, I faced a scenario where I've to create an Application Service to expose a functionality to be cosumed from ...
2
votes
1
answer
627
views
Reusing aggregate root key across bounded contexts?
As the question states, is this bad practice?
I have a User aggregate root in the bounded context of Identity for authenticating the user. In this bounded contexts I have fields for the User related ...
0
votes
1
answer
1k
views
Enum as part of domain - enum + extension or consolidate into one class?
I have a program where the domain is focused around programs.
As part of the domain, I have a 'ProgramType', which is an enum formed mostly via a string from the database but also via a bit of logic. ...
1
vote
2
answers
1k
views
DDD: Is there a place for "find or create" in the business logic
Some user actions quite naturally lead to find-or-create situations. For example, user logs into a system by alternative method and find-or-create is called give email. Or, another example, User is ...
1
vote
2
answers
109
views
Improving the design of state transitions in a business application: the case of cancellation
I have to load certain object from the DB, and propagate it through few state and save after each state propagation.
Let us illustrate this with the example of an Order entity.
I now have to load few ...
5
votes
3
answers
5k
views
CRUD operations in DDD
I'm designing an application with DDD. I'm moving from flat POCO objects to strong domain models, so my question is:
Would I have to call my basic CRUD operations (located in my repository layer) ...
5
votes
4
answers
4k
views
DDD, modularizing the application and domain layers without breaking the DIP
Quoting DDD theory:
The application layer is thin in terms of domain logic - it merely
coordinates the domain layer objects to perform the actual work.
When it comes to modularization, and ...
0
votes
2
answers
136
views
How does one design his various architecture/business models?
I'm currently learning about various application design approaches and there's one thing I can't really get my head around.
Let's say I have a physical device in my network, an IP surveillance camera....
28
votes
1
answer
8k
views
How to choose between using a Domain Event, or letting the application layer orchestrate everything
I'm setting my first steps into domain driven design, bought the blue book and all, and I find myself seeing three ways to implement a certain solution. For the record: I'm not using CQRS or Event ...