
What Is Domain-Driven Architecture?
Published · Author: Stefan Priebsch
Michael Dowden asked me what I meant by Domain-Driven Architecture. About twenty minutes later, I was still answering.
I coined the term, and it’s the title of the book I’m writing. You’d think I’d have a short answer ready by now. I still find parts of the idea hard to explain, and working on the book keeps turning up new questions. That conversation on Signals was one of the times I felt I’d explained it well.
What should the architecture help the business do?
Domain-Driven Design helps a team understand and model how a business works. Domain-Driven Architecture builds on that understanding to decide where the software needs to change, and when. To make those decisions, we need to know how often something happens, what it costs the business, and what would tell us that the current approach is reaching its limits.
I call the measurable limit of the current approach a threshold. Say a team processes 50 orders a day by hand and estimates it can handle up to 80 while still meeting the shipping cutoff. If daily order volume grows by five orders each month, the team expects to reach that threshold in six months. Allow two months to implement and roll out a change, plus one month for uncertainty, and the latest safe start is three months from now. The team can use actual order volumes and shipping times to revise both the threshold and the forecast as it learns more.
The business process stays stable as its implementation changes. The team still receives, checks, and fulfills orders. At low volumes, people can do the checks by hand. As order volume approaches the threshold, the team can automate routine checks and keep exceptions with the people who know how to handle them.
That’s what I’m working on under the name Domain-Driven Architecture. It’s a process model for doing architecture in a domain-driven way, without the baggage of unnecessary artificial complexity. This approach also seems to be very AI-friendly.
Watch or listen to the conversation
Thanks to Michael for the question and the conversation, and to Ines Chargui for talking me into doing the podcast in the first place. You can watch the episode on devmio or listen on the Signals episode page or Apple Podcasts. You can also find the Signals show on Spotify.
I'd personally recommend watching, because I did some drawing and it's probably easier to follow along if you watch. Enjoy the episode, and feel free to let me know what you think.
