Tagged Questions
2
votes
2answers
220 views
Identifying Domain Services & Application Services when doing DDD
-I'm trying to figure out how to identify Application Services in my application. I think I can identify a Domain service by 2 things:
It acts as a facade to the repository.
It holds business logic ...
3
votes
5answers
309 views
What is the business cost of anemic domain model
I am looking to quantify the cost or problems of bad software development practices. Specifically can software that has been developed resulting in an anemic domain model be quantifiable in terms of ...
2
votes
2answers
261 views
Presentation VS Application layer in DDD
I have trouble drawing a clear line between Presentation and Application layer in Domain Driven Design.
Where should Controllers, Views, Layouts, Javascript and CSS files go?
Is it in the ...
3
votes
0answers
133 views
DDD and filtering
I am developing an app in ddd maner. So I have a complex domain model. Suppose I have a Fare object and Airline. Each Airline should contain several or much more Fares.
My UI should represent Model ...
1
vote
1answer
116 views
When do domain concepts become application constructs?
I recently posted a question regarding recovering a DDD architecture that became an anemic domain model into a multitier architecture and this question is a follow-on of sorts.
My question is when ...
4
votes
2answers
166 views
Keeping a domain model consistent with actual data
Recently domain driven design got my attention, and while thinking about how this approach could help us I came across the following problem.
In DDD the common approach is to retrieve entities (or ...
3
votes
4answers
338 views
DDD: Service or Repository
I am developing an app in DDD manner. And I have a little problem with it.
I have a Fare (airline fare) and FareRepository objects. And at some point I should load additional fare information (from a ...
4
votes
1answer
143 views
DDD: service contains two repository
Does it correct way to have two repository inside one service and will it be an application or domain service?
Suppose I have a Passenger object that should contains Passport (government id) object. ...
2
votes
1answer
440 views
Recovering an anemic domain model into a multitier architecture
I have spent the past several days learning about domain driven design and attempting to apply it to a current project. I decomposed the problem domain into the canonical logical components: domain, ...
7
votes
3answers
338 views
Accessing Repositories from Domain
Say we have a task logging system, when a task is logged, the user specifies a category and the task defaults to a status of 'Outstanding'. Assume in this instance that Category and Status have to be ...
7
votes
3answers
245 views
Resources for popular domain models
I have come across many situations where I had to build a system for a library or a clinic or other popular domains.
The thing is a domain model for a library was probably done 1000 times already with ...
6
votes
2answers
275 views
DDD / Layers and legacy systems
I have to refactor a complex C# app (many dialogs, mixed logic and so on).
There is a part managing the communication with special hardware equipments (sending commands and receive data via ...
4
votes
2answers
214 views
Domain Objects with Interfaces
I'm in a situation where part of my system has a dependency on another module in the same system, but the modules themselves need to remain independently deployable, where the parts they depend on ...
1
vote
2answers
182 views
Designing a hierarchical structure with lots of reads and writes?
I am in the process of working on a video on demand system part of it involves the management of a hierarchical tree structure (think windows explorer) which allows users to upload videos, move ...
7
votes
2answers
240 views
How to make this design closer to proper DDD?
I've read about DDD for days now and need help with this sample design. All the rules of DDD make me very confused to how I'm supposed to build anything at all when domain objects are not allowed to ...
2
votes
2answers
348 views
Web workflow solution - how should I approach the design?
We've been tasked with creating a web based workflow tool to track change management. It has a single workflow with multiple synchronous tasks for the most part, but branch out at a point to tasks ...
2
votes
4answers
183 views
How to decide whether to implement an operation as Entity operation vs Service operation in Domain Driven Design?
I am reading Evans's Domain Driven Design. The book says that there are entity and there are services. If I were to implement an operation, how to decide whether I should add it as a method on an ...
2
votes
5answers
2k views
Application layer vs domain layer?
I am reading Domain-Driven Design by Evans and I am at the part discussing the layered architecture. I just realized that application and domain layers are different and should be separate. In the ...
3
votes
2answers
689 views
Should I use an aggregate root when designing my repository?
I have an entity that is called Master which is composed of a number of Slave entities.
There can only be one Master in my database and I want to query repositories to get the Slave for a given id.
...
5
votes
2answers
265 views
How to define the seams between the domain layer and a database full of stored procedures?
We have a legacy database full of stored procedures.
These stored procedures are somewhat CRUD-categorized but upon inspection of some procedures, they are not "simple" as they might update, delete, ...
10
votes
2answers
2k views
DDD - Does an aggregate root's repository handle saving aggregates?
I am using a DDD-like approach for a greenfield module of an existing application; it's not 100% DDD due to architecture but I'm trying to use some DDD concepts. I have a bounded context (I think ...
5
votes
2answers
1k views
Command handlers and DDD
I have an ASP.NET MVC application, that uses a query service to get data and a command service to send commands. My question is about the command part.
If a request comes in, the command service uses ...
2
votes
4answers
228 views
Data access for composable applications
I'm wondering if anyone can share their thoughts, experience and guidance on how to approach the data access layer for a composable application?
By composable application, I mean an application with ...
6
votes
1answer
832 views
Architecting a modular service application
I'm looking at architecting a new solution that is very modular by nature and would like to create a structure that supports that design to allow for easy future expansion, clear separation of ...
7
votes
4answers
512 views
Refactoring in domain driven design
I've just started working on a project and we're using domain-driven design (as defined by Eric Evans in Domain-Driven Design: Tackling Complexity in the Heart of Software. I believe that our project ...