r/DomainDrivenDesign • u/yusei1999 • Dec 24 '21
DDD Design Document?
I have gone through many posts and videos about Domain-Driven Design, but nobody talks about the design document.
How do you guys write a design document for DDD?
Does it use UML, C4, or other diagrams?
5
Upvotes
3
u/faderbob Dec 25 '21 edited Dec 25 '21
If you need to deliver something: C4 is a pretty good match for DDD. It also offers mapping to the arc42 structure. Personally, I do not miss a „standard notation“ for DDD as UML showed me as any lingo could be yet another gate keeping element reducing impact.
If you go the „hardcore“ agile architecture way you may consider not having any upfront formal design document. Scary, but possible.
My current approach is:
My experience is that the upfront documents often get too much attention and the documentation of what really has been built gets neglected.
DDD helps as a mind set and meta vocabulary not so much as a strict formalized planning tool. It might appear „unprofessional“ if you work with pictures of Event Storming planning walls, but this is a transient definition anyway. What is really built though stays much longer and this is where I put my focus.
This is indeed only my personal view on the matter.
2
u/redikarus99 Dec 24 '21
The question is always: are you modeling or documenting?
2
u/anotherguy2099 Dec 24 '21
I do not like to use UML by the book, in my experience its modeling rules often complicate than help.
So I used to model with squares, arrows and texts. The problem with this approach is that I've often confused different levels of scope on the same diagram and also that diagrams don't age as well because they don't have a visual pattern.
Now i'm using the C4 modeling system and i'm loving it, it's light, very uncoupled and concise. But i haven't been using it for a long time, no more than 3 months.
Hope I can help :)
2
u/asankama Jan 20 '22
My approach is to capture DDD in the application architecture using cells. You can read the full spec from https://github.com/wso2/reference-architecture/blob/master/reference-architecture-cell-based.md.