Although the reasoning of software systems at the architectural level provides an effective way to handle complexity, the emerging area of self-adaptive software systems is challenging traditional approaches on how to develop, operate, and evolve software systems. However, at the same time that current practices are being challenged, opportunities emerge regarding new application areas for software system that are flexible when handling change (which may affect the system itself, its environment, or its requirements). Associated with changes, inevitably, there are uncertainties that need to be identified, analyzed, and handled, and this is the purposes of trade-off analysis in systems design. In the context of self-adaptive software systems trade-off analysis is not an exclusive development-time activity, trade-off analysis takes place also at runtime while the system is adapting itself.
Architectural-based development-time trade-off analysis is still a very much human activity, and their techniques and practices cannot be easily automated. Even if they could be automated, one would not be able to achieve the same level of thoroughness because of the lack of human insight, experience and diversity. However, there are certain benefits for moving some of the trade-off analysis from development-time to runtime, and one of these is related to the state space of uncertainties. At runtime, the state space should be smaller than that at development-time since at development-time there is little operational information of the actual system yet in the process of being designed. The amount of operational information available during runtime should be exploited in order to support trade-off analysis for adapting the software system. The development-time and runtime trade-off analyses should be complementary in order to optimize the service, and its qualities, to be delivered by the system. In order words, there are decisions currently being made at development-time related to operational uncertainties that can be deferred to runtime.
This rearrangement of trade-off analysis for handling uncertainties between development-time to runtime raises a clear challenge: how to identify what kind of analyses should be performed at development-time from those that should be performed at runtime. This identification, on its own, should establish the limits of adaptation, and this in itself already involves some kind of trade-off between adaptation and evolution. It is unquestionable that adaptation has its limits, and the decision when to stop adapting and to start a new evolution cycle is something that should be related to runtime limitations. An interesting feature to be considered in any self-adaptive software system should be the system capability of decommissioning itself when is not able to adapt anymore. Whether to deploy another redundant system, or completely stop its activities is a key decision to be made.
This book provides a timely springboard for starting a more insightful discussion on how to perform trade-off analysis in architecture-based self-adaptive software systems. New processes for trade-off analysis should be established, which should identify activities and decisions to be associated with development-time and runtime. These processes should identify what should be tailored on existing and well established practices, and identify challenges associated with the dynamic trade-off analysis to be performed during runtime. As part of development-time trade-off analysis, decisions should be made regarding the ability of the architecture in supporting runtime adaptation, and the easiness in instrumenting the software in terms of probes and effectors, for example. Regarding runtime trade-off analysis, since this has to be fully automated, some kind of decision maker should be adopted, and the literature is reach regarding synthesis techniques. The challenge is on the analysis side in which solution boundaries need to be explored in terms of their effectiveness, quality attributes and risks, for example. In this context, the promising solutions rely on games to be played between the controller and the sources of change that might affect the system. A more far reaching challenge, for the sake of the evolving software, is how to consider and incorporate into the trade-off analysis performed at development-time, the trade-off decisions, and their associated rationale, made during runtime.
Another major challenge regarding runtime trade-offs are the decision-making criteria. If a system, its requirements and environment are expected to change, also the criteria regulating decision making should be dynamic. Usually these criteria are considered static, which might lead to less than optimal decisions, in a truly dynamic environment. If that is the case, trade-off analysis tools and techniques should be capable of updating during runtime the values of the criteria. Moreover, one should not expect that a single technique, for example, utility functions, should be sufficient for a wide range of applications and contexts. The area of decision making is an area in which diversity of techniques and tools should have a positive impact since changes in the parameters of the decision-making criteria, or the techniques and tools being used, might have a great impact upon decisions. In summary, the runtime trade-off analysis should be itself resilient against changes that might affect the self-adaptive software system in which it is embedded.
Rogério de Lemos
March 2016