Questions tagged [domain-driven-design]

Domain-driven design (DDD) is an approach to developing software for complex needs by deeply connecting the implementation to an evolving model of the core business concepts. Note that conceptual DDD questions are better to be asked at softwareengineering.stackexchange.com.

The premise of domain-driven design is the following:

  • Placing the project's primary focus on the core domain and domain logic
  • Basing complex designs on a model
  • Initiating a creative collaboration between technical and domain experts to iteratively cut ever closer to the conceptual heart of the problem.

Domain-driven design is not a technology or a methodology. DDD provides a structure of practices and terminology for making design decisions that focus and accelerate software projects dealing with complicated domains.

The term was coined by Eric Evans in his book of the same title: Domain-Driven Design: Tackling Complexity in the Heart of Software

Books

Sample Application

6728 questions
4
votes
2 answers

WCF Separation of Concerns VS DRY

I'm writing a WCF service application where I have isolated the WCF classes into their own "Presentation Layer" (For lack of a better term). Then underneath that, I have an application layer that orchestrates the domain objects. I like the fact that…
Chris
  • 257
  • 2
  • 14
4
votes
1 answer

Repository pattern in clojure

Being new to clojure, I would like some advice on implementing the repository pattern*. In an OO language, I would create a repository interface, a test and at least one db impl. I would instantiate them during bootstrap, pass the objects around…
4ZM
  • 1,463
  • 1
  • 11
  • 21
4
votes
2 answers

How to use Rich Domain with Massive Operations?

Since I am working on a relatively complex problem, I would like to use the Domain Driven Design approach to solving it. Problem in question is calculating monthly invoices for clients. The current solution is implemented as a very long Stored…
Dan
  • 11,077
  • 20
  • 84
  • 119
4
votes
2 answers

Declarative Domain Model possible (DDD)?

I'm looking for insight/ papers/ articles, etc. whether a fully declarative Domain Model (as per DDD) is possible. For example: Validation can be declarative (lot's of ORMs do this) business flow logic can be declarative: having a DSL for…
Geert-Jan
  • 18,623
  • 16
  • 75
  • 137
4
votes
2 answers

Domain Driven Design

The layering scheme for DDD suggests that the layers should be; Presentation/Application/Domain/Infrastructure The diagram presented in Evans book shows the Presentation accessing the infrastructure layer. Is my interpretation of this diagram…
David
  • 3,519
  • 1
  • 24
  • 30
4
votes
3 answers

Collection of Domain Objects in a Domain Model

This may be a basic question but I am pretty new to DDD. I have an domain object that we'll call Adjustment which can be processed in bulk from the UI. Before we process the Adjustments, we need to validate the date those adjustments will be…
Benoit Martin
  • 3,323
  • 2
  • 22
  • 22
4
votes
1 answer

Asynchronous Repository for Silverlight Application

I'm familiar with the standard repository, which has an interface resembling: public interface IRepository { IEnumerable All(); T GetByID(int id); //etc... } My problem involves attempting to implement…
gn22
  • 2,076
  • 12
  • 15
4
votes
2 answers

Best practice advice in generating and consuming business level events

We are currently finishing an architecture plan for a new software application we are developing next year in ASP.NET MVC / C#. We are planning to construct the application following Domain-Driven design patterns and techniques and i'm wondering if…
John Kattenhorn
  • 839
  • 11
  • 25
4
votes
4 answers

Persistence ignorance and DDD reality

I'm trying to implement fully valid persistence ignorance with little effort. I have many questions though: The simplest option It's really straightforward - is it okay to have Entities annotated with Spring Data annotations just like in SOA (but…
kboom
  • 2,279
  • 3
  • 28
  • 43
4
votes
3 answers

WebApi and OData

I'm new to WebApi and I don't quite get it. I do get that all the verbs are focused on Get, Put, Post and Delete. But Coming from a heavy DDD and MVC background, I need some pointers. I'm used to expose services/resources/actions whatever you want…
Roger Johansson
  • 22,764
  • 18
  • 97
  • 193
4
votes
2 answers

Specification pattern and DDD

Within the context of a personal play project for learning more about DDD patterns, I am missing a Specification object for my filters. Looking around for examples, it seems that everything (like LinQ) is oriented towards SQL databases. However…
4
votes
1 answer

Physical organization of bounded context/aggregates

In the context of DDD how is everyone physically structuring their files/folders when it comes to bounded context and aggregate roots? Does there need to be a physical representation of these or is it more just for discussions? I've tried to find…
Sean Chambers
  • 8,572
  • 7
  • 41
  • 55
4
votes
1 answer

DDD : nested aggregates and many to many relationships

I'm currently working on a Publishing Bounded Context. The main players in this context are Product and Listing. Product : can be listed in multiple marketplaces. One Product Many Listing. Listing : can have many products because some marketplace…
berkeleyjuan
  • 516
  • 4
  • 10
4
votes
1 answer

DDD: Aggregates and sub-aggregates

I have a quite complex aggregate, with aggregate root Order. It contains entities (eg. OrderItem) which are meaningless outside an aggregate. But there are also entities that are supposed to be part of this aggregate, but also do make sense outside…
4
votes
3 answers

Do I need to be a design patterns expert before I dive into Domain Driven Design?

I have a copy of Head First Design Patterns and I read through a few of the patterns in there. Now is Domain driven design a substitute to the traditional design patterns or does it build upon it? If its the latter, do I need to be a Design patterns…
Foo
  • 4,206
  • 10
  • 39
  • 54
1 2 3
99
100