--

I understand the association, but this post isn’t meant as a counterpart to DDD. I think the folder-by-feature structure can be used in any project (with or without DDD).

In your case, you could for example still use feature folders for your infrastructure level code in /app.
But you could also split up your domain code per feature. In that case the feature folders act more like ‘bounded context folders’; as if they are a kind of microservice within your monolith.

Feature folders can provide the boundary for your bounded contexts :)

--

--

Responses (1)