A number of tools for managing complexity have been presented in this text. Creating abstractions and defining entities and relationships were introduced in Chapter 2 . Chapter 3 introduced decomposition, hierarchy, and certain logical relationships such as class/instance, type/specialization, and recursion. Combined, these tools allow the architect to represent different aspects of the architecture, while removing the irrelevant details to produce a minimum-complexity representation.
In the creation of architecture, we have to ask how these tools can be used to manage the evolution of complexity in the system. The architect is responsible for choosing a decomposition of the system, for determining which abstractions are relevant and useful, and for determining how the choice of hierarchy will impact the system design.
At this stage, the complexity of the system is expanding, and domain-specific vocabularies, methods, and tools are resurgent. It is not our intent to define a process so explicit that we can “turn the crank,” or follow blindly. Rather, our intent is to illustrate the relevant principles. We will organize the discussion around what is perhaps the most powerful tool—and the most important decision—decomposition.
Choosing a Decomposition
Modern engineering is entwined with the use of the Bill of Materials, a decomposition of the design down to the purchased components (or sometimes below, for purchased sub-assemblies). Although this decomposition is very concrete, it does not necessarily lend itself to functional decomposition of the concept. The intent of a functional decomposition is to determine which subsystems or entities will accomplish which functions, to determine which functions are necessarily emergent and cannot be decomposed, and (as we will see) to carry the intent of the architecture down through the design. These objectives are not well served by a purely formal decomposition, which can fool the user into thinking that the management of the pieces will produce the desired emergence.
Decomposition is an explicit choice in system architecture [ 8 ] ( Box 13.5 Principle of Decomposition), one of the highest-leverage decisions. Good decomposition will facilitate interface testing and highlight important subsystem couplings. The wrong decomposition will leave some subsystems (or functions) with enormous tasks and others with minor tasks. Worse still, the wrong decomposition will leave out relevant functions, systems, or operating conditions. For example, consider decomposing the operations of a system by nominal get ready, get set, go, get unset, get unready. This decomposition will focus attention on the typical operating case, while omitting fault conditions, contingencies, commissioning, and the like.
Many people assume that the core problem in large, complex systems is integration of the component parts. In fact, integration is often made unnecessarily difficult because the problem was poorly partitioned in the architecting phase.
Box 13.5 Principle of Decomposition
“Divide et impera” [Divide and conquer]
Roman saying
Decomposition is an active choice made by the architect. The decomposition affects how performance is measured, how the organization should be set up, the potential for supplier value capture, and how the product can evolve, among many other things. Choose the plane of decomposition to align as many of these factors as possible, in order to minimize the apparent complexity of the system.
-
Decomposition involves choices not only of how many and where to make internal boundaries, but also (and most important) in what plane to consider internal boundaries.
-
The choice of the plane of decomposition (form, function, operation, supplier, and so on) in which to consider internal coupling is a key decision.
Thus decomposition is important, but how do we judge the “goodness” of a decomposition? The fact is that the decomposition at Level 1 cannot be evaluated until we descend to Level 2. Consider decomposing a class of 30 students (Level 0) into two groups (Level 1): Student 1 and Students 2–30. We won’t know whether this is useful until we create the decomposition at Level 2, such as decomposition by student height or by visual impairment. For student height, our decomposition is not useful; Student 1 may skew the distribution of heights. However, if Student 1 is visually impaired, it is a useful decomposition if we’re looking to assess needs for legibility of presentation material. (This example is merely an analogy, and we’ve taken creative license by conflating the notion of decomposition with the statistical notion of sampling.)
We call this principle 2 Down, 1 Up ( Box 13.6 Principle of “2 Down, 1 Up”). It embodies the idea that in a hierarchic system, the real information about how to cluster or group the system one level down from the reference is present in the structure and interaction two levels down. As suggested by Figure 13.9 , if we start at a reference Level 0, the wrong thing to do is to immediately try to decide how to cluster elements at Level 1. Instead, we should propose a trial decomposition at Level 1, work down to Level 2, identify the structure and interactions there, and place boundaries to cluster the Level 1 elements based on this insight.
Figure 13.9 Illustration of “2 Down, 1 Up” in decomposition. The best way to test the goodness of a first-level decomposition is to evaluate it at the second-level down.
Figure 13.9 Full Alternative Text
Chapter 8 contains a worked example demonstrating this principle, the air transportation service. Starting from the Level 0 concept (flying a traveler with an airplane), we develop the Level 1 trial architecture ( Figure 8. 2 ). The plane of this organization is sequence —what happens first, second, and so on. These Level 1 processes are then decomposed to Level 2 and shown in Tables 8. 2 and 8.3 . Clustering at Level 2 is examined, and the alternative modularization of Level 1 ( Table 8. 4 ) is presented, which emphasizes functional interactions. Neither the original sequence-based Level 1 decomposition nor the final function-based decomposition is inherently right or wrong. They just give different views and a sense of the alignment of clustering on these two different planes.
Box 13.6 Principle of “2 Down, 1 Up”
“Whoever knows he is deep, strives for clarity; whoever would like to appear deep to the crowd, strives for obscurity. For the crowd considers anything deep if only it cannot see to the bottom: the crowd is so timid and afraid of going into the water.”
Friedrich Nietzsche
The goodness of a decomposition at Level 1 cannot be evaluated until the next level down has been populated and the relationships identified (Level 2). Select the modularization at Level 1 that best reflects the clustering of relationships among the elements at Level 2.
-
The modularization should consider maximizing the internal couplings within a cluster and minimizing the couplings among clusters. This is often, but not always, advantageous.
-
The real information about clustering at Level 1 is contained in the interrelationships at Level 2.
-
Therefore, if decomposing from Level 0 to Level 1, go all the way to Level 2 (2 Down), identify the appropriate clustering, and use this for the final Level 1 decomposition (1 Up).
Experience suggests that humans seem comfortable managing 7 +/– two elements at each level of decomposition ( Chapter 2 ). More than nine elements inhibit the ability of the designer to design, and make cross-element analysis combinatorially more difficult, shifting workload up to the architect. Fewer than five elements at each level create deep decompositions, because more levels are needed to represent all components. The deeper the decomposition, the more difficult it will be to think vertically.
Modularity and Decomposition
The choice of decomposition is linked to the modularity of the resulting system. Modularity is often expressed as a desirable property of a system, in the sense that more modularity is better, but rarely is modularity clearly defined.
The idea of modularity refers to the interfaces of the system. A system is modular if its interface(s) allow old modules to be removed, and new modules to be inserted at the interface. It is most commonly brought up in the context of having an open number of variants, rather than a closed number of variants. Lego’s interface enables an open number of variants (the number of shapes that can be built by combining many Lego blocks); although it is not infinite, the number of variants is large and unforecasted.
The related ideas of common components and platforms typically refer to a closed set of variants. For example, we might plan an alternator mounting bracket to accept the three alternator variants currently used in a product line. Modularity and commonality are not fully distinct ideas. A system with a lot of common components can be modular, but whereas commonality focuses on parts or code sharing for cost-saving reasons, modularity often focuses on operational and design flexibility.
In Part 2 , we discussed the use of Design Structure Matrices (DSMs) to represent the internal connections of a system, and we explored their use in the modularization of a system ( Chapter 8 ). DSMs are powerful tools. They allow the architect to analyze the system subject to a clear objective (minimizing the interconnections between subsystems). Here, we will expand on this analysis to ask an important question: Is minimizing interconnections the right principle for decomposing the system?
The two key ideas in decomposition and modularization are the number of elements, chunks, or functions (the easy part) and the plane of decomposition (the hard part).
Consider a technical report as an example of architectural decompositions, in which we report on three technical concepts, and three types of analysis were conducted on each concept. How should the report be organized? The chapters could be organized by concept, with all three analyses presented in each (see Figure 13.10 ). This can help the reader perform a broad evaluation across the three analyses, and it might even help the reader make judgments about aspects of the concept not covered by the analysis. In contrast, the chapters could be organized by analysis, where all three concepts are laid out for direct comparison against the metric of the analysis. This decomposition plane affords the reader an opportunity to understand the breadth of concepts for which the analysis might be relevant, and it may promote creativity about stretching the analysis to other concepts. Of course, hybrids are also possible; we might provide an overview of the analysis and then a further three chapters on the three concepts themselves.
Figure 13.10 Potential decomposition planes for a technical report.
Figure 13.10 Full Alternative Text
The purpose of this example is to point out that the plane of decomposition, not the number of chunks, is the key decision. The choice of decomposition plane impacts the reader’s or user’s understanding. It creates a lens that enables creativity and emergence along one plane but represses them in other planes. The choice of the plan of decomposition is a strong lever on the elegance of the resulting architecture ( Box 13.7 Principle of Elegance).
Box 13.7 Principle of Elegance
“Pulchra sunt quae visa pacent.” [All that pleases the eye is beautiful.]
Thomas Aquinas
“When I am working on a problem, I never think about beauty but when I have finished, if the solution is not beautiful, I know it is wrong.”
R. Buckminster Fuller
Elegance is appreciated internally by the architect when a system has a concept with low essential complexity and a decomposition that aligns many of the planes of decomposition simultaneously. Elegance is appreciated externally by a user when the system embodies a sense of aesthetics, quality, and low apparent complexity. Architect systems with these attributes that produce elegance.
Having spent a significant portion of this text on the distinction between form and function, it might be tempting to argue that the form of the system represents Option 1 for decomposition, and the function of the system represents Option 2 for decomposition. We will show that there are many more possible decompositions.
Let’s first review decomposition by form and by function. Form decomposition allocates one or several elements of form to each Level 1 entity, with the end result that form is clearly divided (see Figure 13.11 left). For example, we could divide our Hybrid Car by the body, chassis, drivetrain, and interior. This form decomposition has the advantage of being more concrete. It also makes certain properties (such as mass) sum linearly, without emergence. Then we can determine the mass of the system by adding the masses of all the elements.
Figure 13.11 Form decomposition concept (left) and function decomposition concept (right).
Function decomposition implies that we list the system functions at Level 1 as the entities (see Figure 13.11 , right). For a Hybrid Car, we might list these functions as support and comfort passengers, store energy, produce power, isolate passengers from external vibrations, and so on. Function decomposition highlights how the decomposition decision can influence the eventual system performance: It will highlight certain types of emergence. For example, if Level 1 for our Hybrid Car includes the function “isolating passengers from external noise,” that would force us to evaluate potential sources of vibration and potential causes of attenuation at a system level. The driver does care whether vibration comes from the powertrain, the road, the wheels, or the exterior trim. This is a classic systems problem, and the decomposition either enables or disables the architect’s “emergence lens.”
There is no reason to believe that form and function are the only two decomposition planes possible for the system. The firm that builds our Hybrid Car may well operate from a stable form decomposition embodied in the Bill of Materials and a stable function decomposition embodied by the engineering organization (vibration, structures, and so on). But what happens if the competitive advantage of the firm relies on its ability to integrate the components of two dissimilar suppliers? This would suggest that the enterprise should explicitly define the interfaces between Supplier A and Supplier B components.
In 1968, computer scientist and programmer Melvin Conway postulated that “organizations which design systems are constrained to produce designs which are copies of the communication structures of these organizations.” [ 9 ] The modularity of the system is inextricably intertwined with the organization that develops it. Conway’s Law, as it is known, formulates the problem inversely from the way we have framed it (the product mirroring the organization versus the organization mirroring the product), but the best formulation is that the two are coupled. Conway’s Law has been cited as a storyline for the Mars Climate Orbiter failure, where two teams used different units (one used metric, the other, imperial), resulting in the orbiter initiating maneuvers at the wrong altitude above the Martian surface. More recently, researchers have tested Conway’s Law, finding strong evidence in support of a causal link between organization and product in software product modularity. [ 10 ]
It is easy to argue that modularity is desirable—that some modularity is good, and more modularity is better. However, modularity carries a cost. Figure 13.8 illustrated how additional interfaces increase the complexity of a system. Even where interfaces already exist, building modularity into an interface implies meeting a range of performance goals (different structural loads, additional pins for connectors that are sometimes used, and the like). Computer scientist Alan Perlis, known for pioneering work in programming languages, has said, “Wherever there is modularity there is the potential for misunderstanding: Hiding information implies a need to check communication.” [ 11 ]
In Box 13.8 Potential Planes for Decomposition of Systems, we represent 12 potential decomposition planes, by no means an exhaustive list, along with some guidance on each. The eventual sustained competitive advantage of the system is greatly influenced by the decomposition and its resulting modularity: Decompose at each step with a principle or factor in mind, and with a holistic view of the system lifecycle. Alignment of the planes of decomposition can produce more elegant decompositions, where possible.
Box 13.8 Methods:
Potential Planes for Decomposition of Systems
| Delivered function and emergence | Be careful with decompositions that spread important externally delivered functions over many elements, because they require significant functional interface management and may complicate the emergence of function. |
| Form and structure | Cluster elements of form that have high connectivity or important spatial relationships. Don’t place interfaces in areas of high connectivity, because that will cause actual complexity to rise. |
| Design latitude and change propagation | Components whose designs are tightly coupled should be grouped, in order to allow more design latitude within the module, minimize the constraints on the designer, and minimize propagation of design changes across module interfaces. |
| Changeability and evolution | Place interfaces so that modules can be combined to form platforms and support product evolution. The internal interfaces will become the stable features of the architecture. |
| Integration transparency | Create interfaces that allow easy testing and provide integration visibility and understanding of what occurs at the interface. |
| Suppliers | Create interfaces at points that will allow suppliers to work independently and creatively, driving new technology into the design. Suppliers can define modularity or defy modularity! |
| Openness | If module interfaces will be open to third parties, place interfaces in such as way as to balance potential advantages from innovation and network effects, against the potential drawbacks of information sharing. |
| Legacy components | Design that involves reuse of legacy components will often encounter constraints on decomposition and challenge interface design. |
| Clockspeed of technology change | Create interfaces that will allow technologies that evolve at different rates to be changed out asynchronously. |
| Marketing and sales | Enable differentiating features, as well as cosmetic or minor product refreshes, to be added without architectural change. Create modules that can be flexibly combined later in manufacturing to allow product customization. |
| Operations and interoperability | Decompose to allow operator touch points and wear parts to be easily delineated and accessed for training, maintenance, and repair. |
| Timing of investment | Modularize to phase the development spending. Allow the first investments to deliver some value, and subsequent ones to add additional value. |
| Organization | Match the modularization of the system and the organization (Conway’s Law). |