The software architecture community realized from the very beginning (more than 2 decades ago) that functionality was not the main challenge; we could get that right, sooner or later, in an incremental and iterative manner. The real focus for researchers and the main pain point in industrial architecture practice was and still remains how to tame quality attributes. Form (architecture) does follow function, but form has some trouble following quality.
The problem of achieving requirements for quality attributes qualifies as a “wicked problem,” and it is a multifaceted one. First, one cannot achieve each attribute in isolation as they are often interdependent and even contradictory. Consider, for example, the conflict between performance with almost any other quality attribute; when you try to optimize for performance, you may hurt the modifiability or security of your system. Second, a quality attribute cannot be dealt within a single component but requires system-wide measures. It would have been wonderful to have, e.g., a “reliability component” that can be simply integrated in a system, but it does not work that way; quality needs to be ensured across the system. Third, in contrast to functionality that can be very tangible and expressed simply yet effectively in use cases or user stories, quality attributes are rather elusive and often expressed in a vague way. This has been the source of frustration in innumerable discussions between development teams and other stakeholders, that started from a simple question like “What exactly does it mean for the system to be usable?” Finally, quality attributes are almost always implicitly derived from business goals. The link to business goals constitutes the rationale behind quality attributes; just like the rationale behind design decisions, it can hamper system evolution if it remains implicit.
However, all is not lost. The architecture community has been diligently working on methods and tools to tackle the aforementioned problems and help architects systematically manage quality attributes and their trade-offs. Software patterns for architecture and design describe in detail the quality attributes in terms of the pattern forces and further elaborate how the solution incurs both benefits and liabilities regarding those quality attributes; tactics contribute in the same direction by focusing on individual qualities. Furthermore, architecture design methods consider quality attributes as inputs and match them with candidate patterns and tactics in order to make rational decisions. Subsequently, architecture evaluation methods examine multiple quality attributes and perform explicit trade-offs by looking at related design decisions. Moreover, there are proven techniques to express quality attribute requirements in a SMART way for example by means of low-level scenarios with a tangible input and a measurable output. Additionally, there are several architecture views that frame quality attributes and modeling techniques for formal specification and verification of qualities. Finally, there are methods that elicit the relationships between quality attributes and business goals, as well as methods that study the explicit trade-off between the utility gained from achieving quality attribute requirements and the corresponding cost.
But then again, just as we thought we had tamed quality attributes, the advent and proliferation of self-adaptive systems changes the rules of the game. Self-adaptive systems are moving towards more and more flexibility where the design space is not fixed at design time but both problems and solutions can shift during runtime in an unplanned manner. Especially the new generation of self-adaptive systems that is currently emerging will increasingly face this core challenge: uncertainty . Our entire arsenal in the struggle towards managing quality attributes is going to be rendered obsolete as uncertainty looms in a number of ways. We may not know whether the requirements for the system quality attributes will change in the future or how they will change. We may be uncertain whether the components and services being used will remain the same and will continue operating within the same functional and quality boundaries. We cannot predict changes in the environment and other interacting systems, or changes in the mission and goals of the overall system. We cannot ensure that new configurations of the system will continue delivering the prescribed quality of service. There may be doubts whether established and confirmed design decisions are still valid under future conditions.
Current architecture design methods can only optimize the design with respect to explicit requirements and trade-offs for quality attributes; introducing variability in both problem and solution space can become extremely complicated. Similarly, architecture evaluation methods can gauge whether design decisions are sound for specific quality attributes, given that both decisions and qualities are described in a nonambiguous manner. Software patterns and tactics describe both the problem and solution space under a specific context and a “closed world assumption”; they do not take into account unforeseen changes. And what is the point of expressing quality attributes in a SMART way if the stimulus changes or if the way we measure responses takes a different form? In other words, none of the current available methods and tooling can be used as is, in the self-adaptive domain. This is why this book is very timely in shedding some light on the intricate problem and potential solutions of managing trade-offs of quality attributes in self-adaptive architectures.
I think this field will become increasingly important over the next years and the following directions are particularly promising for further research:
Intertwinement of problem and solution space. While the interrelation between requirements and architecture has long been recognized, it has remained to a large extent a “holy grail” in practice. The different metamodels and schools of thought used for expressing problem and solution spaces limit this interrelation while traces between them can be mostly constructed manually, which is prohibitively expensive. However in self-adaptive architectures, we need to come up with better traceability so that changes in the problem space can be translated more flexibly and accurately to changes in the solution space and vice versa.
Data science to the rescue. We do not have a crystal ball to predict the future, but looking at the past can often provide sound indications on where we are headed. Data science can contribute enormously to this field with tools and techniques on how systems and environments evolve over time, especially in an open source context, thereby reducing the uncertainty in the design space. Furthermore, using theory and tools from machine learning, the knowledge base of a self-adaptive architecture can be continuously updated to reflect the current situation from both the problem and the solution side.
Variability management redefined. Handling uncertainty in self-adaptation can be viewed as a variability management problem, where the sources of uncertainty are variation points, while the different potential cases of problems and solutions are the variants. Variability management theory and tools from software product lines or massively customizable software can be reused and built on, to model deviations in quality attributes in self-adaptive systems as well the impact of alternative design decisions. Emphasis needs to be given on the dependencies between the variants which can be immensely complicated.
The chapters in this book provide some initial steps towards solving these and related problems. I hope you enjoy reading this volume as much as I did, and I would strongly encourage you to work persistently on these hard problems, as this field holds both a challenging and rewarding future.
Paris Avgeriou, University of Groningen, the Netherlands