iTranslated by AI
Why DDD Fails: Re-evaluating DDD Through History
In Japan, DDD began to attract more attention than ever around 2020 and has been implemented by many companies.
Perhaps because of this, I have seen quite a few people who mistake DDD for a modern design methodology that was recently born.
However, Evans published his book on DDD in 2003.
In other words, you could say that something that hadn't been trendy for 20 years suddenly started attracting attention.
How has DDD evolved over those 20 years?
I will examine this based on the timeline surrounding DDD.
Timeline Surrounding DDD
From PoEAA to DDD
When talking about DDD, it is impossible not to mention "Patterns of Enterprise Application Architecture (PoEAA)".
PoEAA is a book that summarizes design patterns in application development, and concepts proposed in DDD, such as Repositories and Domain Models, are described here.
I feel that a large reason why people today struggle to understand Evans' book is that new concepts appear abruptly without detailed concrete examples.
On the other hand, at the time the book was published, these patterns were already part of a common understanding.
Consequently, that book was basically saying, "This specific combination of patterns is the best way to translate the domain into implementation!"
It means that Evans didn't suddenly create the concepts of repositories or domain models out of thin air when writing DDD.
The Era Without Web Frameworks
DDD was written in an era when web frameworks were hardly used at all.
Even looking at the release years of major web frameworks, they were all released after DDD was published.
In other words, when DDD was published, it was likely common to develop systems from scratch every time without a framework, or for each company to create their own framework-like tools.
It was precisely because of this historical context that PoEAA, a book summarizing design patterns, was published and attracted attention.
From there, various people likely stepped forward claiming, "This combination of patterns is the best!", and went on to publish books or create frameworks.
For example, ActiveRecord, which is adopted by Rails, is one of the patterns described in PoEAA.
DDD in the 2000s
Now, did DDD become popular in Japan immediately after its publication? Not exactly; the Japanese translation was published in 2011, about 10 years later.
In "The Essence of Domain-Driven Design for DDD Refugees," the situation in 2007 is described as follows:
However, partly because a Japanese translation hasn't been published yet, it seems to me that even now, nearly three years after the publication of this book, it has only spread to a few enthusiasts. Also, some people who have read the original book say, "The book is too thick to finish reading..." (There is even a term called "DDD Refugee").
The Essence of Domain-Driven Design for DDD Refugees
Furthermore, the situation didn't seem very promising globally either, not just in Japan. For instance, while it says:
Tools and frameworks that actively adopt DDD, such as the MDA tool Sculptor, are beginning to appear.
The Essence of Domain-Driven Design for DDD Refugees
It is a fact that tools and frameworks that actively adopted DDD, like Sculptor, failed to gain a significant market share.
Mr. Rohit, who works at Google, describes the situation around 2010 as follows:
The theory of Domain Driven Design created by Eric Evans in his seminal book Domain Driven Design ( DDD ) was published on August 30 2003. ... as of now most software engineers still struggle to apply the tactical and strategic patterns of Domain Driven Design. This was the state of DDD circa 2010.
DDD is Broken
Ultimately, I believe one of the reasons it didn't spread was that even five years after publication, it was still difficult to apply the tactical and strategic patterns of Domain-Driven Design.
Microservices and DDD
So did DDD fade into the background? Not at all; it gained renewed attention in the context of microservices.
He along with Martin Fowler triggered the Microservices revolution and triggered a renewed interest in DDD as the theoretical foundation for Microservices. ... DDD’s Bounded Context, Sub-domains and Context Maps helped.
DDD is Broken
Due to this background, DDD is often explained in relation to Microservices in many books and educational materials.
For example, in LinkedIn's DDD course, separate chapters are dedicated to Microservices and Bounded Context with detailed explanations. Similarly, Microservices courses often include explanations of DDD. Of course, there are many others besides LinkedIn.
Reactive Architecture and DDD
In the 2010s, while microservices were being put into practice, better methodologies were being explored.
Particularly in architectures where microservices interact synchronously, services tended to become tightly coupled, and scalability was often lost. As a result, the Reactive Manifesto was announced in 2014, and the concept of Reactive Architecture spread.
And Event Storming was born as a technique to identify system boundaries within Reactive Architecture.
While this area might seem unrelated to DDD at first glance, in English-speaking regions, they are often discussed together.
In fact, keywords such as Microservices, Event Storming, and Reactive Architecture are frequently seen in DDD Europe presentations.
The DDD Boom in Japan around 2020
Now, completely independent of the trends mentioned above, mentions of DDD suddenly increased in Japan around 2020.
Unlike the context of Microservices or Reactive Architecture, this boom focused particularly on the tactical DDD aspect—specifically, how to write code.
From here on, this is purely a speculation based on my own observations, but I believe it is related to the decline of Ruby on Rails.
Around 2018, people in the "info-product" business began promoting career shifts to engineering, and programming schools flourished under the slogan "Earn 10 million yen in a year."
Programming schools taught Ruby on Rails due to its low barrier to entry, which led to an influx of junior engineers in the industry who could only write Rails.
This eventually led to a sentiment that "Rails projects aren't cool anymore" or "Ruby jobs have low unit rates," which I think accelerated the shift to other languages and frameworks.
And most frameworks are not as well-paved as the "Rails Way," and developers found themselves needing to design their own structures.
I speculate that DDD's tactical patterns perfectly matched the needs of those seeking a new path for system design.
Conclusion
In this article, we re-examined DDD from various perspectives through the timeline surrounding it.
Particularly by understanding how DDD is treated outside of Japan, we were able to grasp DDD from a new perspective.
DDD itself is a philosophy that has existed for over 20 years, and it can be said that its current state is the result of countless practical applications.
By learning from this history, I believe we can connect to better practices without repeating the same mistakes.
Discussion