Reaching Domain-Driven Results
Domain-driven is a curious term. The Merriam-Webster dictionary gives ten definitions for the word domain . The first three might be among the ideas that come to mind when thinking of this word:
-
Complete and absolute ownership of land
-
A territory over which dominion is exercised
-
A region distinctively marked by some physical feature
This book discusses business software strategy and innovation. Because every business is unique, it could well be that “domain” draws attention to the “dominion” of the business ownership of properties and operations, and perhaps even the distinctive features among these. While not wrong, none of these is the best interpretation of how “domain” is used in this book.
Chapters 1 – 3 heavily emphasized realizing business software strategy through learning and discovery to bring about differentiating innovation. This emphasis on learning and discovery points to the fourth definition for domain found in the Merriam-Webster dictionary, and it is the most fitting:
- A sphere of knowledge, influence, or activity
Every business has a specialized sphere of knowledge , which is gained through preexisting expertise and the activities of collective and shared learning. Once this knowledge is reflected in software products, it has influence on consumers. Now, dipping into the first three definitions, the results are indeed the intellectual property owned within the business dominion. It reflects the distinctive features of business creativity that are the reward for the investment made in knowledge acquisition and sheer determination to advance the state of the art. This is for certain a sphere of knowledge, influence, and activity.
Domain-driven points out that a business drives results through investments in knowledge acquisition within and beyond its current sphere of influence and activity. The business drives its own advancement and growth through steady improvements in its technology-based products. This book continually asserts that it is learning through experimentation-based discovery that will yield the most innovative results.
Innovation within an Agile Methodology
As an example of using a methodology or process execution framework, Scrum identifies four primary reasons to place an item in the product backlog:
-
Features
-
Bugs
-
Technical Work
-
Knowledge Acquisition
It’s disappointing that Knowledge Acquisition is consigned to last place, because it should always be in first place. How can a team place a new feature in the backlog before they understand it? Even if they do put the feature in the backlog before knowing it well, at a minimum Knowledge Acquisition must be given due diligence before attempting to implement it. It’s also disappointing that Knowledge Acquisition is often described with technical motivations, such as “researching various JavaScript libraries and making a selection.” This rationale is also unknown to most developers who consider themselves Scrum practitioners. The fact that such problems exist at all may indicate a larger problem in the methodology or at least the priorities of execution.
If you’re using Scrum, promote Knowledge Acquisition into first place and label such tasks in terms of domain-driven experimentation, especially those that have a higher potential to lead to breakthroughs that result in differentiating innovations. Pass every new feature-based task under the hammer of traceable business goals through impacts, which might have been first discovered through EventStorming learning sessions.
Using a domain-driven approach requires the prominent and consistent involvement of business experts working with software developers. This aligns precisely with the long-stated tenets of #agile:
-
Agile Manifesto: “Our highest priority is to satisfy the customer through early and continuous delivery of valuable software. Business people and developers must work together daily throughout the project. The most efficient and effective method of conveying information to and within a development team is face-to-face conversation.” [ Agile-Manifesto-Principles ]
-
Extreme Programming (XP): “The Customer is Always Available. One of the few requirements of extreme programming (XP) is to have the customer available. [This is] not only to help the development team, but to be a part of it as well. All phases of an XP project require communication with the customer, preferably face to face, on site. … You need the expert.” [ XP ]
Admittedly, some aspects of both #agile and XP have shifted over time. Our purpose in noting the importance of “customer” here is not to give a strict definition, but rather to emphasize that those who understand the goals of the domain at hand must be available, and that each must be a member of one or more teams. These individuals might be known as a sponsor, customer, user, product champion, and so forth. There is no need to exhaustively identify every role that a business expert could play in any given subsystem, but you should recognize that there must be one or more who are able to champion the product being developed and drive the software goals to delivery. Everyone involved, including the end users of the product, must be pleased with the results.
Domains and Subdomains
When it comes to equities investments, knowing where to invest and where not to invest is critical to financial success. As the saying goes, “you can’t time the market.” That reality gives investors all the more reason to invest based on key financial indicators and market conditions, which are sound sources of securities industry knowledge.
When it comes to business software strategy, understanding where to invest the most and where to invest the least is likewise critical to financial success. Although being completely right the first time is rare, it might not matter so much. In the world of business, something that is currently right has a high potential to be wrong later. Constantly monitoring attempted impacts to achieve business goals, as well as studying market conditions that put a spotlight on user satisfaction, are sound ways to gauge the effects of innovation endeavors.
Software reaches across the breadth and depth of an entire business. The entire domain or sphere of knowledge of all software in a large enterprise is voluminous. It’s too complex for any single project or considerably sized business program to include the full domain’s vast details in the defined effort’s scope. Likely a team will find that most are irrelevant, anyway. Defining constraints for the scope of any given software development effort is essential for successful deliveries.
Because the sphere of a sphere of knowledge is relative to its specific purpose, it’s not surprising that the term domain can have a few scopes and nuances. Four are defined for the purposes of this discussion. Figure 4.1 illustrates the four scopes, which are further defined in the list that follows.
-
Voluminous enterprise scope. All software in a large enterprise is the business’s full domain. At this scope, a single source of in-depth knowledge is impossible to create.
-
Medium-to-large system scope. Commercial licensed enterprise systems, such as ERP, as well as large, custom, legacy systems fall within this scope. In terms of domain knowledge, these are closer to Scope 3, but were likely not well planned and architected. They are often the Big Ball of Mud systems described in Chapters 1 and 2 , but that need not be the case.
-
Medium-to-large problem space scope. A problem space is a sphere of knowledge that unfolds as a set of solutions are developed, but requires multiple teams whose members have various types of expertise (i.e., Scope 4). Ultimately, the problem space is an effort in system development.
-
Smallish context scope. Every single communication context of know-how within a problem space is the sphere of knowledge of a specialized business expertise.
Figure 4.1 Four scopes of domain knowledge spheres used in this book.
An enterprise architecture framework can assist in managing a large digital enterprise, that of Scope 1. Yet it generally won’t provide much deep information about each part of a large enterprise. That’s often locked up in the team’s tacit knowledge. Such a framework is a schema or ontology, which supports a set of formal and structured viewpoints of an enterprise. Sometimes the framework also assists in the process of defining an enterprise architecture. The power of such a framework is to help in organizing and inventorying a company’s digital assets to help with planning and decision making. Two such frameworks are the Zachman Framework [ Zachman ] and The Open Group Architecture Framework [ TOGAF ]. Figure 4.1 provides only a limited glimpse into the overall enterprise, and is in no way a reflection of the result of using an enterprise architecture framework.
Scope 2, as seen in Figure 4.1 , often reflects a haphazard approach that results in the Big Ball of Mud systems described in Chapters 1 and 2 . Still, that need not be the case. A system can be architected and implemented in a manner that doesn’t reflect an ad hoc approach. The differences in the two can be seen in Figure 4.1 with the scopes numbered 2 that are brown/dark colored and those that are green/lighter colored, respectively. The Big Ball of Mud systems are generally quite large. Those thoughtfully architected tend to be more medium in size, with new software more focused on a specific solution, and are integrated with the preexisting Big Ball of Mud systems to leverage what works but without getting very dirty hands.
Abstractions Contraptions
This discussion might seem too abstract. If so, think of the Scope 3 problem space as NuCoverage introducing its SaaS-based insurance platform. Consider the Scope 4 contextual divisions within the Scope 3 problems space to be Intake, Underwriting, Risk, Renewals, and Claims. This point is explained in more detail in Chapter 5 , “ Contextual Expertise .” For now, the abstractions are useful for imagining and plugging in the problem space and areas of expertise with a specific sphere of knowledge that exists in any given business.
Figure 4.1 also shows a single Scope 3 strategic initiative that is under way. This area of work is meant to produce some level of breakthrough innovation, which means that the teams lead with experiment-based learning. An overall sphere of knowledge exists here, but a deliberate effort is being made to divide the problem space domain into specialty areas of expertise. This is indicated by the Scope 4 contexts inside Scope 3. This depiction is not meant to create silos, but rather to acknowledge that the different experts view the problem space from different angles. Collectively, the knowledge is gained and used to solve a medium-to-large problem space, while the specialty areas are recognized and strictly honored. As a whole problem space, Scope 3 will have different areas of Scope 4 contextual expertise. Each is managed by a single team. Each team includes at least one expert in that contextual area of expertise. Making one team responsible for a context protects the area of expertise from becoming confused and fractured by the goals and communication-based languages that are developed by other teams.
This leads us to the lowest-level scope. Within the Scope 3 problem space are five Scope 4 subdomain contexts of separate specialties. Each of the five contexts represents where specific conversations take place regarding a focused and relatively narrow sphere of knowledge. Every context is where a team of one or more business experts and developers have a shared understanding of what a given term and any number of expressions mean in their conversations. As a goal, no ambiguities should exist inside a given context, although undoubtedly there will be some. When any are detected, conscious exertion is made to clear up the foggy meanings and associated software rules and behaviors.
Scope 4 brings up another term: subdomain. A subdomain is a subpart of a domain, and specifically applicable within Scope 3. It’s often the case that a subdomain is the same as a business capability. Ideally, a context, such as that seen in Figure 4.1 , should align one-to-one with a subdomain. Consider a subdomain as primarily a problem space concept, and recognize that each has a greater or lesser strategic business significance.
In Chapter 5 , Figure 5.1 shows the specific contexts represented in Figure 4.1 here. The names assigned to the contexts draw attention to the corresponding subdomains. Problems arise when multiple subdomains exist in a single modular context. Those problems tend to relate to how a single source module becomes overloaded with concepts that are not germane to the central theme of the context, which should be a single, well-defined subdomain. For example, NuCoverage’s Policyholder Accounts subdomain becomes problematic as additional insured rewards are defined. Studying the diverging goals makes it clear that a new subdomain has emerged and must be removed from the Policyholder Accounts and located in a new Reward Programs subdomain. When solutions are carefully designed, each subdomain should align one-to-one with a context of the same name.
Does the Scope 3 problem space indicate that all the knowledge for the solution is held inside among the five contexts? That’s very unlikely and even more so impractical. At least a few of the five Scope 4 contexts are integrated with preexisting Big Ball of Mud legacy systems. Any amount of effort in a large enterprise will never eliminate all messy and unseemly legacy bits. Leverage what’s there because it works. Any given Big Ball of Mud system that is eventually broken apart will still have integrations with the then smaller contexts, each of which represents a single subdomain. Make no mistake—this will be the result of vigorous, concerted effort to overcome the complexity caused by years of neglect.
At least one relevant question remains: Does the Scope 3 problem space represent an architecture where the five contexts are physically contained inside a Monolith? Maybe. Maybe not. As emphasized in Chapter 2 , it’s a good way to start because it will delay a whole host of problems that the teams shouldn’t be required to deal with early on. It’s possible that in time the architecture will switch from Monolithic to distributed, but that’s a decision to be made at the last responsible moment. For now, Scope 3 is chiefly representative of a strategic problem space where a lot of learning must happen to reach differentiating results.
Summary
This chapter introduced and promoted the concept that every business should be driven to make investments in knowledge acquisition, within and beyond its current sphere of influence and activity. The knowledge reflected in software products is the real business differentiator and has a real influence on the users. Yet, understanding where to invest the most and where to invest the least is likewise critical to financial success, and must also be a recognized component of business software strategy. The domains and subdomains introduced in this chapter help to reinforce the proper application of software as a profit center.
The most essential points of this chapter are:
-
Learning through experimentation-based discovery within every core sphere of knowledge of a business will drive the most innovative results.
-
Tracing business goals through impacts enables a higher potential for breakthroughs that will result in differentiating innovations.
-
The domain-driven approach requires the prominent and consistent involvement of business experts working with software developers.
-
Expert is not a title, and business expertise can be gained through roles such as product sponsors, customers, users, product champions, and so on.
-
Domains are used to determine the whole business problem space. Subdomains are subparts of the domain with specific contextual scope.
-
Each subdomain should align one-to-one with a business capability and a context of expertise, yet business capabilities will be extended over time, and corresponding subdomains will follow suit.
Next, we dive deeper into finding and contextualizing business boundaries of expertise with the help of a technique known as Domain-Driven Design. This technique offers tools for both strategic and tactical software development—those that address the problem space and help transition to the solution space. It fits with the software innovation goals previously discussed and assists with those that remain in this book.
References
[Agile-Manifesto-Principles] https://agilemanifesto.org/principles.html
[TOGAF] https://www.opengroup.org/togaf
[XP] http://www.extremeprogramming.org/rules/customer.html
[Zachman] https://www.zachman.com/about-the-zachman-framework