Domain-driven design (DDD) is an approach to develop software for complex needs by connecting the implementation to an evolving model.
0
votes
2answers
67 views
Converting Business Process Maps into Software
I am fairly new to web application development. I have defined my problem domain through talking to various stakeholders and putting a process map together - basically a flow chart showing the ...
16
votes
5answers
778 views
Unit Testing in a “no setter” world
I do not consider myself a DDD expert but, as a solution architect, do try to apply best practices whenever possible. I know there is a lot of discussion around the pro's and con's of the no (public) ...
5
votes
2answers
121 views
Domain Services as facades
I read .NET Domain-Driven Design with C#: Problem - Design - Solution and I noticed that the author created a domain service for each aggregate root.
However, the domain services were only facades to ...
2
votes
2answers
110 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 ...
2
votes
1answer
96 views
Domain Driven Design with an EAV database model
How can one apply DDD to a EAV database model?
Consider this EAV database model:
How am I supposed to build a domain model if all my entities and their attributes will be stored in the database?
...
4
votes
2answers
202 views
Avoiding ubiquitous language clashes
I have been reading DDD Quickly and wondered about how to avoid naming clashes with technical terms and domain terms. For example, if I commonly used the repository pattern (with classes such as ...
0
votes
3answers
101 views
Should a service use session information?
As an example, if I have a Post service and have a method to retrieve all posts for the logged in user, is it OK to have a findPosts() method that uses an injected Security service to get the user ID ...
4
votes
3answers
207 views
Good practices to implement mappers in a multi-tier application
When you are working with a multi-tier application very often you run into task of converting objects in one layer to objects in another layer. This could be converting database objects into domain ...
5
votes
3answers
203 views
DDD - Aggregate Roots - Dealing with Efficiency and Concurrency
First off, I'll admit that I'm a newbie to DDD and need to read the "blue book".
I'm building a system that has an AggregateRoot of type "Match". Each Match can have a collection of "Votes" and also ...
5
votes
2answers
153 views
Unit Test Friendly Domain Driven Design
Many of the readings I've done on DDD, both in books and online, seem to represent code that, often times, is difficult or impossible to unit test. For example, there are numerous samples with static ...
3
votes
5answers
276 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 ...
3
votes
1answer
103 views
Aggregate Root and Lots of Data Efficiency
It's more of a scenario, but it isn't far fetched at all. Let's say I have an Aggregate Root (AR) Warehouse which it's used to manage product stock. The Product itself is an AR in a different bounded ...
1
vote
1answer
235 views
Examples of N-Tier design with Rich Domain Model
I am looking for some well structured samples implemented using Domain Driven Design that include a rich Domain model. Currently I tend to design systems with Anaemic Domain Model and according to ...
2
votes
2answers
208 views
Do we achieve 100% Persistence Ignorance solution if we're not using ORM's POCO objects to model the Domain?
Persistence ignorance is ability to retrieve/persist standard objects, where standard objects are considered as classes focused on particular business problem and thus don't contain any ...
2
votes
2answers
179 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 ...
2
votes
0answers
115 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 ...
5
votes
1answer
141 views
Domain Model and Querying
I am new to DDD, having worked only in Transaction-Script apps with an anemic model, or just Big Balls of Mud, so please forgive any terminology I abuse.
I am trying to understand the proper ...
1
vote
1answer
106 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 ...
2
votes
3answers
214 views
DDD and Value Objects. Are mutable Value Objects a good candidate for Non Aggr. Root Entity?
Here is a little problem
Have an entity, with a value object. Not a problem. I replace a value object for a new one, then nhibernate inserts the new value and orphan the old one, then deletes it. Ok, ...
1
vote
1answer
118 views
Is there a clean separation of my layers with this attempt at Domain Driven Design in XAML and C#
I'm working on an application. I'm using a mixture of TDD and DDD. I'm working hard to separate the layers of my application and that is where my question comes in.
My solution is laid out as ...
4
votes
2answers
148 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
282 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
122 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
182 views
DDD Model Design and Repository Persistence Performance Considerations
So I have been reading about DDD for some time and trying to figure out the best approach on several issues.
I tend to agree that I should design my model in a persistent agnostic manner. And that ...
3
votes
1answer
396 views
How to manage long running background threads and report progress with DDD
Title says most of it. I have found surprising little information about this. I have a long running operation of which the user wants to see the progress (as in, item x of y processed). I also need to ...
2
votes
1answer
344 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
1answer
365 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 ...
5
votes
6answers
173 views
In a team practicing Domain Driven Design, should the whole team participate in Stakeholder meetings?
In my experience, a Software Development Team that comprises:
1 Project Manager
1 Tech Lead
1 - 2 Senior Dev
2 - 3 Junior Dev (Fresh grad)
Only the Tech Lead & PM (and/or Senor Dev/s) will ...
3
votes
2answers
182 views
Can the following Domain Entity contain logic for creating/deleting other entities?
a) As far as I understand it, in most cases Domain Model DM doesn't contain code for creating/deleting domain entities, but instead it is the job of layers ( ie service layer or UI layer ) on top of ...
5
votes
6answers
409 views
Should a domain expert make class diagrams?
The domain expert in our team uses UML class diagrams to model the domain model.
As a result, the class diagrams are more of technical models rather than domain models (it serves of some sort of ...
3
votes
2answers
47 views
Resources on securing domain models? [closed]
I'm have good resources on both security, domain modelling, and architecture patterns. I've noticed a distinct lack of any suggestion of how and where to integrate security into the systems I build. I ...
7
votes
3answers
260 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 ...
1
vote
1answer
109 views
design pattern advice: graph -> computation
I have a domain model, persisted in a database, which represents a graph. A graph consists of nodes (e.g. NodeTypeA, NodeTypeB) which are connected via branches. The two generic elements (nodes and ...
3
votes
1answer
265 views
Domain Models (PHP)
I have been programming in PHP for several years and have, in the past, adopted methods of my own to handle data within my applications.
I have built my own MVC, in the past, and have a reasonable ...
7
votes
3answers
228 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 ...
7
votes
10answers
635 views
Should an image be able to resize itself in OOP?
I'm writing an app that will have an Image entity, and I'm already having trouble deciding whose responsibility each task should be.
First I have the Image class. It has a path, width, and other ...
6
votes
2answers
264 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
1answer
184 views
Is it Ok if Domain Object cross Service Boundary
Is it Ok if Domain Object cross Service-Boundary?
Everyone recommend that only DTO should be returned by Services.
I am creating simple CRUD application.
Is it ok if my service methods return ...
1
vote
2answers
305 views
Are factors such as Intellisense support and strong typing enough to justify the use of an 'Anaemic Domain Model'?
It's easy to accept that objects should be used in all layers except a layer nominated as a data layer. However, it's just as easy to end-up with an 'anaemic domain model' that is just an object ...
4
votes
2answers
173 views
Justification for bidirectional relationship
I typically try and avoid bidirectional relationships at all costs. Recently I've been trying to follow a more domain centric design philosophy and I'm looking for advice in the best way to solve a ...
6
votes
3answers
2k views
MVVM, DDD, and WPF Layered Application Project Structure Guidance
I am trying to setup my application's structure in VS and I want to "try" and future proof it to a reasonable level. This application will be a WPF re-write of an old Winform app that had followed no ...
2
votes
7answers
530 views
Inheritance using non-abstract base class
This post is based on the question http://stackoverflow.com/questions/49002/prefer-composition-over-inheritance/11758048#comment15634305_11758048.
Some people said - check whether there is “is-a” ...
4
votes
2answers
206 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 ...
3
votes
1answer
240 views
Distributed application using RabbitMQ
I am on my way to create an application with 4 bounded context using CQRS & event sourcing.
In order to make these bounded context talk to each other I was planning on using Rabbit MQ.
My ...
2
votes
1answer
335 views
CQRS + Event Sourcing: (is it correct that) Commands are generally communicated point-to-point, while Domain Events are communicated through pub/sub?
Didn't know how to shorten that title.
I'm basically trying to wrap my head around the concept of CQRS ( http://en.wikipedia.org/wiki/Command-query_separation) and related concepts.
Although CQRS ...
4
votes
2answers
615 views
DDD, Saga & Event-sourcing: Can a Compensate Action simply be a delete on the event store?
I realize the above question probably raises a few 'what??'s, but let me try to explain :
I'm trying to wrap my head on a couple of related concepts, basically the Saga-pattern ( ...
5
votes
2answers
395 views
Are Persistence-Ignorant objects able to implement lazy loading?
Persistence Ignorance is an application of single responsibility principle, which in practice means that Domain Objects (DO) shouldn't contain code related to persistence, instead they should only ...
17
votes
3answers
4k views
Programming SOLID Principles
Over time I could understand two parts of SOLID – the “S” and “O”.
“O” – I learned Open Closed Principle with the help of Inheritance and Strategy Pattern.
“S” – I learned Single Responsibility ...
3
votes
2answers
549 views
Should this code/logic be included in Business Objects class or a separate class?
I have created a small application which has a three tier architecture and I have business object classes to represent entities such as User, Orders, UserType etc. In these classes I have methods that ...
1
vote
2answers
732 views
What is a best practice tier structure of a Java EE 6/7 application?
I was attempting to find a best practice for modeling the tiers in a Java EE application yesterday and couldn't come up with anything current. In the past, say java 1.4, it was four tiers:
...