Creating multiple Application projects in Clean Architecture #577
Replies: 4 comments
-
This sounds like multiple DDD bounded contexts which would typically be indepedant systems. What benefit to you would adding multiple Application projects give you over multiple independant systems? Try listing the pros/cons so we can better understand your reasoning. |
Beta Was this translation helpful? Give feedback.
-
I agree with Ronnie, sounds like two bounded contexts. src/ You won't be able to do imports between the bounded contexts if you are following the DDD approach, so in that case, you should create a Share folder with their respective Application, Domain, and Infrastructure folders.
It would be great to know more about this to check if we can provide you with a better answer |
Beta Was this translation helpful? Give feedback.
-
Hi all, I have the same question. I have several background projects. Especially when you do a lot of async work you will end up with multiple background jobs handling the async work. I also have two UI applications. I also have a web client and a mobile client, these are also different projects. So a lot of deployable components. I used to call a deployable component an application but with clean architecture the term applications is arbitrary. I should call these deployable components presentations I assume, background processes are then presentations also. |
Beta Was this translation helpful? Give feedback.
-
I did this by duplicating my application project for each application, and took common out of application and put it into its own project, and referenced it accordingly. These applications still used domain, and infrastructure. |
Beta Was this translation helpful? Give feedback.
-
Can we create multiple Application projects/layers in the Clean Architecture.
For example I have a application project named Application.Inventory and now I want to add another application project named Application.HRM.
So is it okay if I add multiple application layers/projects in a clean architecture solution?
Beta Was this translation helpful? Give feedback.
All reactions