简体   繁体   中英

What are the advantages of using multiple projects in DDD structure (.NET Core)

I have been researching a lot into DDD and I have only found conflicting answers regarding this. First of all I am not asking about DDD theory (mentality / process design /etc) I am talking about the actual code and project structure.

Every example I have seen has, first of all, different structure. Multiple class libraries that go from 3 to even 8 class libraries. And in the end, the Application layer calls most, if not all of them.

This is where my questions arises (which could really be really amateur, but so far no one has been able to answer): what are the advantages of having multiple projects in one solution for DDD, if in the end, everything gets called towards the application layer (and in between), the alrenative being management through Folders/Namespaces correctly.

Hopefully this isn't a repetitive/obvious question since I couldn't find any consistent/comprehensive answer in stackoverflow.

what are the advantages of having multiple projects in one solution for DDD

None. For DDD itself there is no advantage, nither disadvantage.

You can separate your solution with as many projects as you want, or have just one project, and still be using all DDD practices.

Of course there is Pros and Cons about separations, but it is not related to DDD.

There is some architectural aproaches that feels a match with DDD, like Ports and Adapters (Hexagonal), but its not a requirement.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM