Chapter 1

Managing Trade-Offs in Adaptable Software Architectures

B. Schmerl * ; R. Kazman * , † ; N. Ali ‡ ; J. Grundy § ; I. Mistrik ¶      * Carnegie Mellon University, Pittsburgh, PA, United States
† University of Hawaii, Honolulu, HI, United States
‡ University of Brighton, Brighton, United Kingdom
§ Deakin University, Melbourne, VIC, Australia
¶ Independent Software Researcher, Heidelberg, Germany

Abstract

Making trade-offs in architecture is a fundamental activity in software design. As software is required to operate continuously in changing and uncertain environments, adaptability needs to be considered as a key issue, along with other more traditional software qualities. In this chapter, we introduce the concept of managing trade-offs in adaptable software architectures, discussing adaptability during the design of the software and as it runs. We outline important current approaches, challenges, and opportunities in managing these trade-offs.

Keywords

Trade-offs; Adaptive architecture; Self-adaptive systems

1.1 Introduction

As the field of software architecture enters into its third decade of formal study, it is moving from its traditional and foundational focus on the nature of an architecture in terms of a system's structure and behavior, to the more general notion of software architecture as the set of design decisions made to ensure software requirements are met. Consistent with this view is the trend towards focusing software architecture documentation on meeting stakeholder needs and communicating how the software solution addresses their concerns. Usually, a software system is not isolated, but part of a larger system. When making design decisions, not only is the quality of the software architecture itself important, but the quality of the overall system also needs to be considered.

As such, software systems increasingly interact with each other and are more often part of critical civil and business infrastructure. This means that software is increasingly required to operate for long periods of time, in highly dynamic environments, where user demands may change, and where systems' interaction and business goals may evolve. Software architectures, in addition to the design decisions that led to them, also must react and evolve to ensure old and new requirements are met, and that the systems they represent operate reliably.

Design decisions are fundamentally about trade-offs. When deciding between architectural alternatives, architects need to consider how each alternative affects the functional and quality requirements of the software being designed. Often, functional requirements can be architected in a number of ways; the choice of architecture is made by trading off different software qualities. The architecture trade-off analysis method (ATAM) [ 1 , 2 ] by the Software Engineering Institute defines a method for conducting architectural trade-offs for classical quality attributes such as performance, availability, and modifiability. However, this method works best for systems with fixed business goals, behaviors, and bounded environments. Furthermore, the trade-offs are done manually with multiple stakeholders.

For over 15 years, there has been increasing research in the field of adaptable software architectures—where systems are able to change their topology and behavior to adapt to changing circumstances (e.g., changing environments and requirements). For example, in 1997, Robert Laddaga [ 3 ] defined self-adaptive software as software that “evaluates its own behavior and changes behavior when the evaluation indicates that it is not accomplishing what the software is intended to do, or when better functionality or performance is possible.” Oreizy et al. [ 4 ] proposed an architecture-based approach for the construction of self-adaptive systems that relies on software agents, explicit representation of software components, the environment, messaging, and event services. To be able to act autonomously, the software needs to evaluate potential adaptations, taking into consideration trade-offs in new circumstances to make adaptations that are best for meeting the system's requirements.

There are at least two critical aspects of managing trade-offs for self-adaptive systems. First, how do we design systems to be adaptable in the presence of other quality attributes? Through methods like ATAM we have a reasonable understanding of how to manage design trade-offs for performance, availability, maintainability etc., but we have little idea about how to integrate the notion of adaptability in this process. Second, how do we manage these trade-offs at runtime so that when the self-adaptive system needs to decide on an adaptation, it can make appropriate trade-offs dynamically and autonomously?

Despite extensive research on self-adaptive systems, there are still many challenges that need to be addressed. This book contains a set of chapters on the state of the art of managing trade-offs in self-adaptive software systems. In this chapter, we summarize some of the prior work on this topic and lay out a set of challenges that need to be addressed to realize a principled approach to trade-off management in self-adaptive systems.

This chapter is organized as follows. Section 1.2 discusses prior work in architecting self-adaptive systems. Section 1.3 discusses work in managing trade-offs when designing self-adaptive software systems. Trade-off management at runtime is discussed in Section 1.4 . Finally, Section 1.5 outlines a set of research challenges that should lead to a better vision for managing trade-offs in self-adaptive systems.

1.2 Background

In recent years there has been a fundamental shift in software development, away from stovepipe applications that are intended to run on a small cluster of computers, to large distributed software applications that service many clients through public facing interfaces. These highly distributed systems often run on cloud systems and implement big data analytics, meaning that software architects must consider scale and autonomy as primary concerns in developing software. Furthermore, the use of agile development methods and the emergence of DevOps (bringing together development and operation) means that software must be designed with zero downtime, that is, it must run continuously. Moreover, as the software requirements and business needs evolve, and as new, unanticipated threats and security vulnerabilities emerge, the software itself must adapt to meet these challenges. Therefore, it is no longer feasible for many systems to architect them assuming a static set of requirements or a fixed and known environment—systems need to restructure or reconfigure to meet this new and uncertain world.

Historically, the changes required to meet the challenges above have required human intervention in the form of re-engineering the systems through updates, or reconfiguring the system. However, such human intervention cannot scale because adaptations to meet new demands or threats must happen extremely quickly, or the inherent complexity and distribution of modern systems means that the systems are too large and complex to understand. Therefore, there is a need for software to become self-adaptive, meaning that software must be able to autonomously change structure and/or behavior to respond to changing conditions, and must do so reliably and without unnecessarily degrading quality of service (QoS) [ 5 , 6 ].

We can think of the design of self-adaptive systems from two perspectives. On one hand, individual self-adaptive systems contain knowledge of the system's goals and constraints, and adapt themselves to maintain, as far as possible, the goals under changing conditions. On the other hand, because software systems increasingly exist in large interconnected ecosystems, collective self-adaptive systems consist of multiple autonomous elements that are coordinating to achieve a common set of goals. Both kinds of adaptation have received extensive investigation.

The areas of intelligent agents [ 7 ], reflective computing [ 8 ], and control theory [ 9 ] have provided inspiration for approaches to constructing individual adaptive systems. Furthermore, several architectures and mechanisms to enable adaptation have been proposed, including the widely adopted IBM autonomic computing approach [ 10 ]. The latter proposes an architectural pattern for self-adaptation called the MAPE-K loop, which enumerates the activities that should be considered and coordinated when designing autonomic systems: monitoring the system and the environment, analyzing the situation to determine if the system needs to change, planning what to do, and then executing an adaptation on the system; all of these activities involve accessing some knowledge base of the system or part of the system being managed, and in many cases its environment and context. This approach considers self-adaptive systems as adding a closed control loop around the systems they manage. In the control loop, a specific control component (e.g., the “autonomic manager” in the autonomic computing approach, or the “meta-component” in reflective approaches) is responsible for each of these activities.

Collective adaptation requires coordinating adaptation among multiple self-adaptive systems. Centralized approaches to this do not scale, but there is a variety of patterns for coordinating multiple controllers and control loops that have been investigated [ 11 , 12 ]. A control approach to designing self-adaptive system is only one possible approach. Although this approach is overwhelmingly favored in existing self-adaptive systems research, other approaches using negotiation and market-oriented mechanisms have also been studied [ 7 ]. These approaches involve autonomic components cooperating to adaptively converge on specific suitable configurations, possibly respecting specific global goals [ 13 ]. In the past few years, a number of proposals have also suggested that adaptation in distributed systems can be achieved with decentralized self-organization [ 14 ]. However, this raises the issue of properly controlling and predicting the possible emergence of unexpected behaviors.

Research to date has primarily focused on approaches to engineering self-adaptive systems, trying to distil generalized examples of architectures to implement self-adaptation. While these approaches have resulted in engineering a number of successful self-adaptive systems, there has been little research on how to decide which style of self-adaptation is suitable in what cases, how these different styles support or inhibit other system qualities, and how to conduct trade-offs to decide the best architectural approach in specific cases. Furthermore, there is a lack of architectural tactics that can be applied generally, in the same sense as architectural tactics for achieving other qualities (e.g., reliability, performance) [ 15 ]. Some work [ 16 , 17 ] describes patterns for different domains (e.g., service-oriented architecture and self-protection). Again, there is no discussion of how to choose these patterns in the presence of multiple quality concerns.

1.3 Trade-Offs in Adaptive Systems Design

Trade-offs occur in all designs of nontrivial systems, whether these systems are computational or not. Trade-offs are inherent in the design process and resulting artifacts, arising from the properties of components and their interactions. Trade-offs are, therefore, among the most important design decisions that an architect has to make.

A trade-off is an architectural decision that affects two or more system properties, making at least one property better and at least one property worse. Every system, and every system's design, is constrained: by computational resources, by development time, by development team effort, and by investment dollars. And so the concerns and priorities of different groups of stakeholders cannot always be fully met when designing the system. In such cases, the architect needs to make a decision, to value and support one property of the system over another.

For example, the architect might decide to rush a system to market, knowing full well that it will not easily scale. Or the architect might choose to implement ultra-high availability, using backup servers, storage, and networks, knowing that this will unnecessarily increase the cost, or reduce the profitability, of the system. Or the architect might choose to design and implement a very strong encryption scheme on communications over the internet, knowing that this will negatively impact system throughput and latency. These are all risky decisions and any of them might backfire on the architect and doom the project. Trade-offs must, therefore, be carefully considered. And virtually every technical trade-off—for performance, or security, or availability—must be balanced against the ubiquitous trade-offs of cost and schedule [ 18 ] that all organizations must face.

Having to make a trade-off in your architecture design does not necessarily mean that you will be unable to satisfy the goals of your stakeholders, but it does mean that some stakeholders will inevitably be more satisfied than others. Your manager, for example, wants to keep costs and schedule as low as possible, while your end users want as much performance and usability and security as possible, preferably with no downtime ever. System administrators want systems that are easy to install, upgrade, and backup. And so forth.

A good design is one that satisfies the architectural drivers—the primary functionality, quality attribute goals, architectural concerns, and constraints—of the stakeholders that the system is meant to serve [ 5 ]. A good design does not, in most cases, need to optimize for any one of those drivers, at the expense of the others. As Simon explained [ 19 ], designs only need to satisfice for most properties and for most users: that is, the system designs typically only need to be “good enough,” rather than optimal.

In all software systems, trade-offs come in two possible flavors:

  1.   “static” or nonruntime decisions, made during the design, implementation, and evolutionary maintenance of a system, which are relatively difficult and expensive to change, requiring extensive development effort, and

  2.   “dynamic” or runtime decisions, that we can automatically make, monitor, and adapt to as the system is executing. This is the realm of self-adaptive systems.

Trade-offs of type 1 are no different than trade-offs in nonself-adaptive systems. We make these decisions and we live with them, or we pay the price in terms of refactoring and re-engineering costs or technical debt [ 17 , 20 ]. Trade-offs of type 2 are those properties that we can manage and reason about at runtime, such as performance, scalability, availability, security, and so forth. Such type 2 changes—adaptations—may be necessitated because of changes in the environment (e.g., the failure of a network channel), changes in resources (e.g., new servers coming online or being removed), or changes in user demand.

1.4 Runtime Trade-Offs in Self-Adaptive Systems

Even when adaptability is designed into a system, there may be a number of adaptations that can apply when the software encounters a situation in which it needs to adapt. For example, adapting to address low response time in a modern IT system might involve choosing between scaling up, scaling out, or focusing service on important clients; or, reducing battery consumption in an autonomous robotics system might involve switching to less-accurate sensing hardware and localization algorithms, or changing the mission profile of the robot to do fewer tasks. Furthermore, the choice of the best adaptation depends on several factors, including the context in which the system resides, the future environment that the system is likely to encounter, and the business context and goals that the system is trying to achieve or maintain.

It may be theoretically possible to enumerate all the possible states that a system can be in and predetermine the appropriate trade-off for each state, in which case the runtime decision is a simple look-up that maps the current state to the best configuration. However, this approach is complicated by various factors of uncertainty that make the state space extremely large.

First, there is considerable uncertainty involved in understanding the current context in which the system finds itself. To overcome this, the system must sense itself and its environment, but this cannot be done with absolute certainty. For example, self-adaptive systems usually abstract the state of the system into runtime models (e.g., architectural models [ 21 ]), and this abstraction necessarily loses some detail. Second, the environment itself needs to be monitored and abstracted, and because the environment is typically out of the control of the system, there will be limitations in what knowledge the system can ascertain about it. For example, if the number of requests increases, how can we discern if this is due to an increase in the popularity of the application, or whether the system is undergoing a denial of service attack? How do we know if this change in environment is a durable shift that must be addressed with more permanent adaptations, or if it is temporary? How can we be sure that the adaptation we choose will have the desired effect, or impact, on the system to address the concerns? Because of these (and other) sources of uncertainty [ 22 ], these decisions need to be made and evaluated at runtime.

To make the appropriate choice, a self-adaptive system must, at runtime, trade-off multiple concerns in this environment of uncertainty.

As many of these trade-offs involve understanding and managing the quality of the system in addition to the functionality of the system, the use of software architecture models at runtime has been proposed and used to provide self-adaptive capabilities [ 4 , 23 – 25 ].

The use of architectural models as the central knowledge for runtime adaptation is embodied in a framework called Rainbow [ 26 ]. The Rainbow framework uses software architectures and a reusable infrastructure to support self-adaptation of software systems. Fig. 1.1 shows the adaptation control loop of Rainbow. Probes are used to extract information from the target system and its environment that update an architecture model via gauges, which abstract and aggregate this system-level information to detect architecture-relevant events and properties. Gauges and probes together comprise the monitoring aspect of the MAPE-K loop. The analysis aspect of MAPE-K is implemented in Rainbow as architecture evaluators, which check for properties in the model, including satisfaction of constraints and quality attributes in the model, and triggers adaptation if any violation is found. The adaptation manager, on receiving the adaptation trigger, chooses the “best” strategy to execute, thus covering planning in MAPE, and passes it on to the strategy executor, which executes the strategy on the target system via effectors.

f01-01-9780128028551

Fig. 1.1 The Rainbow framework.

The adaptation manager may initially discover that several strategies are applicable, and so must perform a trade-off to choose between them. The trade-off is captured by predicting the impact each strategy will have on each quality attribute, and then prioritizing some qualities over others to score the strategy. The best strategy is chosen on the basis of stakeholder utility preferences and the current state of the system, as reflected in the architecture model. The underlying decision making model is based on decision theory and utility [ 27 ]; varying the utility preferences allows the adaptation engineer to affect which strategy is selected. Each strategy, which is written using the Stitch adaptation language [ 28 ], is a multi-step pattern of adaptations in which each step evaluates a set of condition-action pairs and executes an action, namely a tactic , on the target system with variable execution time. A tactic defines an action, packaged as a sequence of commands (operators). It specifies conditions of applicability, expected effect and cost-benefit attributes to relate its impact on the quality dimensions. Operators are basic commands provided by the target system that implement a particular change.

As a framework, Rainbow can be customized to support self-adaptation for a wide variety of system types. Customization points are indicated by the cut-outs on the side of the architecture layer in Fig. 1.1 . Different architectures (and architectural styles), strategies, utilities, operators, and constraints on the system may all be defined to make Rainbow reusable in a variety of situations.

In addition to providing an engineering basis for creating self-adapting systems, Rainbow also provides a basis for their analysis. By separating concerns, and formalizing the basis for adaptive actions, it is possible to reason about fault detection, diagnosis, and repair. For example, many of the standard metrics associated with classical control systems can, in principle, be carried over: settling time, convergence, overshoot, etc. In addition, the focus on utility as a basis for repair selection provides a formal platform for principled understanding of the effects of repair strategies, and for reasoning about trade-offs at runtime.

In summary, Rainbow uses architectural models of a software system as the basis for reasoning about whether the system is operating within an acceptable envelope. If this is not the case, Rainbow chooses appropriate adaptation strategies to return the system to an acceptable operating range. The key concepts of this approach are thus:

(a)   the use of abstract architecture models representing the runtime structures of a system, that make reasoning about system-wide properties tractable;

(b)   detection mechanisms that identify the existence and source of problems at an architectural level;

(c)   a strategy definition language called Stitch that allows architects to define adaptations that can be applied to a system at runtime; and

(d)   a means to choose appropriate strategies to fix problems, taking into consideration multiple quality concerns to achieve an optimal balance among all desired properties.

In order to conduct trade-offs at runtime, Rainbow uses utility preferences and impact predictions to choose the strategy that will have the best result according to the business goals of the system. This approach is detailed in Refs. [ 28 – 30 ], and is summarized here. First, applicable strategies are chosen based on whether they apply in the given context. For example, if the system is not under attack, then there is no need to examine strategies that deal with attacks; or, if server resources have been depleted, then there is no point in choosing strategies that add servers. Next, each applicable strategy is examined to determine its predicted impact on the current state of the system. Each tactic in a strategy is assigned an impact on each of the qualities of interest. For example, a tactic to add a server will have a positive impact on response time but a negative impact on cost. Each strategy forms a tree of tactics guarded by conditions and probabilities that the branch will be taken. This tree is traversed and an overall impact on each quality is calculated as a combination of the tactics. These impacts are then assigned a value utility based on utility functions defined for the business context, and then combined using preference weights to determine an overall score for the strategy. The strategy with the highest score is then executed by Rainbow.

Naturally, doing this trade-off at runtime is dependent on (a) accurate models of the state of the system, (b) accurate models of impact, and (c) accurate quantification of utilities and preferences. Recent work on Rainbow has begun to address (a) and (b). Accurate models of the system have been addressed partially in Ref. [ 31 ], where theoretical limits on knowledge about the health states of parts of the system that are unobservable have been determined. In Ref. [ 32 ], context sensitive and probabilistic models of tactic impact, and how to modify the impact calculation using probabilistic model checking have been defined.

Despite these advances in using trade-offs to make adaptation choices at runtime, there remain some limitations. First, a decision is made considering only the cost and benefits, but not the risk. A more nuanced approach to decision making might choose a less risky but less impactful strategy over a strategy that has a high impact but might fail. Second, utility and preferences need to be quantified, which is often hard for stakeholders to do accurately. Improving this approach using a ranking scheme might be easier to specify and still provide good results in choosing the most appropriate adaptation at runtime. Linking this runtime decision making to design time rationale for architecture tactics (as is discussed in Section 1.3 ), is also likely to be a worthwhile advance.

1.5 Challenges and the Road Ahead

In this chapter we have reviewed the state of the art in managing trade-offs in self-adaptive systems. While using trade-offs in designing software architectures has received a lot of investigation, incorporating adaptability as a quality attribute, and how it affects other quality attributes has received less attention. Also, while mechanisms and formalisms for trading off quality attributes at runtime to decide the best adaptation has emerged in the past decade, the ability to manage these trade-offs at runtime and adapt the trade-offs has yet to gain traction.

The challenges ahead for taking an architectural perspective on adaptation, and using this as a basis for managing this trade-off among quality attributes, can be divided into the following questions.

1.5.1 How to Architect for Adaptability?

While a lot of work has been done on architecting systems for reliability, performance, etc., and the styles, analysis, and patterns are well understood, how to architect an adaptable system is still largely done in an a hoc manner. There has been considerable work on elaborating the design of autonomy following the MAPE loop, but this represents only one way in which adaptability could be designed. Software architects need principled approaches for designing for adaptability to address the concern of modern software systems. This involves addressing the following concerns:

What are good software architectures or architecture styles for self - adaptive systems ? Architectural approaches to self-adaptation have been dominated by elaborations or variations of the MAPE loop, which at its essence represents a control loop approach. However, this approach is not necessarily the only approach, and may not be the best approach in some contexts. We need a good catalog of styles from other communities. For example, Ref. [ 33 ] discusses a pattern-based style from the agent community as an alternative. Other approaches to self-organization that are biologically inspired might also be applied [ 34 ]. The challenges in all these cases are what are the strengths and weaknesses of each style, in what cases and domains do they apply, and how do they enhance or inhibit other qualities such as performance and security?

What architectural patterns enhance adaptability ? Architectural styles for adaptability are perhaps most useful when adaptability is a primary concern. Architectural patterns (or tactics) are building blocks that can be used to design part of a system to enhance a quality attribute. There are a number of approaches that can be considered as patterns for implementing self-adaptation. For example hot swapping of component, micro-rebooting, and component isolation all have requirements and rules that must be satisfied by the components and connectors that make up the tactics. Notions such as component isolation, quiescence, and tranquility might also be considered parts of patterns. These need to be cataloged and examined considering the same questions as for architectural styles. Some patterns for reliability and fault tolerance (like failing safe) also need to be examined in the context of adaptability.

How to quantify adaptability ? One requirement for doing good design is being able to analyze the design to ensure that it has the properties the designer requires. For example, in the area of performance, queuing theory has been useful in establishing properties such as throughput, response time, and whether there is sufficient load; designs for real time systems can be analyzed with rate monotonic analysis to reason about task deadlines being met. In these cases, the quality attributes can be measured quantifiably, and compared with alternative designs. We need equivalent metrics for adaptability. There has been little work on this. In Ref. [ 35 ] the authors develop adaptability metrics for business processes that examines a number of alternative implementations of a particular service, and how often the service is used in the business process. Much work needs to be done to develop more comprehensive and general metrics. It may be possible to extend methods for quantifying the resilience and reliability of systems to deal with adaptability.

1.5.2 Adaptability in Modern Systems

A key driver of self-adaptive systems described in Section 1.1 is that it is often a consequence of the need for continuous operation. This is particularly the case in the domains of cloud computing, service-based systems, cyber-physical systems, and ultra-large-scale systems. The main question for all of these domains is how do we consider adaptability as a first class concern, and trade it off with other concerns that must be met by the systems in these domains. There has been some discussion of self-adaptation in each of these domains, and each domain has its own approach.

1.5.2.1 Cloud computing

Cloud computing is characterized by the use of remote computing to provide computing resources. Often, the cloud is used to provide scale of computation, where services are duplicated over multiple remote servers to provide enough resources for the software to provide service. Third party providers “rent” resources to clients so that clients do not need to provide or manage these resources in house. Because providing these resources has a cost, clients typically do not want to pay for more resources than are being used. This leads many cloud providers to provide autonomous management services that scale resource usage based on the use of the applications. This is termed elasticity , where infrastructure resources grow and shrink with application demands. Clients have some control over the elasticity used for their applications, to balance cost and performance.

Elasticity is a form of self-adaptation, and is usually characterized by two different tactics: scaling up and scaling out . Scaling up is used to expand the resources (storage, CPU cores, etc.) of the machines that are already being used by an application. Scaling out adds more machines into the pool of machines that can be used by an application. While these are the most common forms of self-adaptation used in cloud computing, other forms of adaptation can be applied in other contexts that use cloud computing. For example, in big data applications, database partitioning can be changed to account for scaling associated with different types of queries.

Cloud computing providers, in giving their application customers control over some of the parameters of elasticity, allow them some ability to trade-off the different concerns of cost and performance to in turn meet their own clients' needs. They can define rules that indicate what forms of scaling should happen when monitored conditions happen. However, this control is limited. As discussed in Ref. [ 36 ], cloud providers need to be careful about what they can monitor to maintain the intellectual property and privacy of the applications they are hosting. So, monitoring is typically limited so that it does not provide visibility into application-level information. This in turn limits the kinds of rules that can be written. For example, an application developer might want to write rules that are based on the types of jobs in various queues in their application (because different types of jobs might take different amounts of processing). However, they might only be able to monitor and adapt to the number of jobs because the type of job is an application-level concern.

More generally, cloud computing is divided into several levels—Infrastructure, Platform, and Software. Each level has its own adaptation rules and trade-offs that can be conducted. For example, at the infrastructure level a developer might be concerned with adaptations that involve the number of machines and their capacity, at the platform level a developer might be concerned with adaptations that change partitioning in databases or thread counts in web servers, and at the software level they might be concerned with more application-specific adaptations. However, each of these levels provides adaptation facilities isolated to those levels. Adaptations, and therefore trade-offs, need to be carefully coordinated between the layers at deployment, but thereon run without the knowledge of what might be happening in other levels. Thus, a key challenge is how to coordinate these layers and allow trade-offs and information to cross these levels.

1.5.2.2 Service-based adaptation to QoS

Service-based adaptations (SBAs) are built by composing small and loosely coupled entities called services that interact in a distributed environment. Service provider organizations usually administer services hosted on their servers or on the cloud, and can build their own services by composing services provided by other service providers. A service-oriented architecture style has been successful as it promises to allow systems to dynamically adapt at runtime and integrate distributed components [ 19 ]. Adaptation of service-based applications is achievable as services can be discovered, selected, and composed at runtime. Several approaches are based on selecting services for achieving one specific quality. It is more complex to select services to achieve multiple qualities simultaneously as it can create an NP-Hard problem [ 37 ]. To solve this, several approaches have proposed using artificial intelligence optimization techniques: multi-agent systems for bidding candidate services to find a good service composition focusing on cost [ 38 ], genetic algorithm based approaches [ 39 , 40 ] which work fine with a scalable number of services and find nearly optimal solutions, or ant colony based approaches [ 41 ]. Approaches have used models as knowledge to self-adapt the SBA. Mostly, QoS SBA adaptation is based on workflow models such as Business Process Models (or business specification languages such as Business Process Execution Language) [ 42 ] or use design time variability models along with business processes to define service compositions [ 18 ].

The above are not based on architecture at runtime solutions to adaptation. Approaches that are architecture based are MUSIC [ 43 ] and SASSY [ 44 ]. MUSIC uses component based models and variability models at design time and at runtime generate service-based models. In SASSY, structural and behavioral architecture models are used to represent the SBA. QoS architectural patterns are stored in a library and to adapt, adaptation patterns that define how to incorporate an architectural pattern into a configuration to achieve QoS are followed. For example, a fault tolerance architectural pattern that considers availability and execution time. When multiple QoS objectives need to be fulfilled a nearly optimal solution is provided.

1.5.2.3 Cyber-physical systems

Cyber-physical systems are those systems where software concerns and physical concerns have equal prominence. In traditional control systems, physical issues dominate, and so those are given priority over software issues. However, as the control of different physical processes needs to be integrated and combined with more complex software, the controls (or adaptations) that need to be exerted on the system become more complex to manage. For example, in a smart building we might have control systems for climate control (HVAC - Heating, Ventilation, and Air Conditioning), lighting, emergency and security, and energy consumption.

Traditionally, these would be separate control systems, but more recently there is a need for these to be closely integrated. This need might come about, for example, if a building needs to achieve some green or sustainable properties. In such a system, controlling the climate might affect all the other control systems. Thus, a key challenge is how to integrate these separate controls into ones that can achieve more global properties—how do we bridge the different providers, expertise, regulations, etc. that are characteristic in each domain to understand and manage the trade-offs among them to guarantee the global properties?

Because cyber-physical systems have an impact on physical objects in an environment, safety becomes a real concern. In such situations, it becomes even more important for runtime trade-offs to guarantee that certain safety constraints will never be violated, regardless of the trade-offs on other dimensions. For example, in a factory handling dangerous materials, we would never want to trade power to a device transporting the material over concerns for energy standards. While these kinds of constraints arise in other domains, they become critical in this domain. One avenue for exploring this might be to incorporate concerns from the fault tolerance community regarding failure modes and effects analysis [ 45 ] and adaptations like failing safely and redundancy.

Another concern in cyber-physical systems is their need to self-adapt to the constraint resources in the devices or their environment. For example, the battery or power of the devices change, therefore the systems have to evaluate trade-offs to keep functioning in these conditions. Self-adaptive software architecture approaches are emerging to aid in allowing systems to choose suitable architectural configurations that satisfy the resources at runtime [ 27 , 46 ]. A critical challenge that needs exploration is how do we provide self-adaptation architectural approaches without negatively affecting the resources of these cyber-physical systems?

References

[1] Clements P., Kazman R., Klein M. Evaluating Software Architectures: Methods and Case Studies. Boston, MA: Addison-Wesley; 2001.

[2] Kazman R., Klein M.H., Clements P.C. ATAM: a method for architecture evaluation. Technical report CMU/SEI-2000-TR-004 2000.

[3] Laddaga R. Active software. In: Proceedings of the First International Workshop on Self-Adaptive Software (IWSAS 2000); Secaucus, NJ, USA: Springer-Verlag, New York, Inc.; 2000:11–26.

[4] Oreizy P., Gorlick M.M., Taylor R.N., Heimbigner D., Johnson G., Medvidovic N., Quilici A., Rosenblum D.S., Wolf A.L. An architecture-based approach to self-adaptive software. IEEE Intell. Syst. 1999;14(3):54–62.

[5] Cervantes H., Kazman R. Designing Software Architectures: A Practical Approach. Boston, MA: Addison-Wesley; 2016.

[6] Salehie M., Tahvildari L. Self-adaptive software: landscape and research challenges. ACM Trans. Auton. Adapt. Sys. 2009;4(2).

[7] Jennings N.R. An agent-based approach for building complex software systems. Commun. ACM. 2001;44(4):35–41.

[8] Wantanabe T., Yonezawa A. Reflection in an object-oriented concurrent language. In: Proceedings of the ACM Conference on Object-Oriented Programming Systems, Languages, and Applications; 1988:306–315.

[9] Abdelzaher T., Diao Y., Hellerstein J.L., Lu C., Zhu X. Introduction to control theory and its application to computing systems. In: Performance Modeling and Engineering. New York: Springer; 2008:185–215.

[10] Kephart J.O., Chess D.M. The vision of autonomic computing. Computer. 2003;36(1):41–50.

[11] Puviani M., Cabri G., Zambonelli F. A taxonomy of architecture patterns for self-adaptive systems. In: Proceedings of the International C* Conference on Computer Science & Software Engineering (C3S2E13), Porto, Portugal, July; 2013:77–85.

[12] Weyns D., Schmerl B., Grassi V., Malek S., Mirandola R., Prehofer C., Wuttke J., Andersson J., Giese H., Goeschka K. On patterns for decentralized control in self-adaptive systems. In: Software Engineering for Self-Adaptive Systems II. Berlin, Heidelberg: Springer; 76–107. Lecture Notes in Computer Science. 2012;vol. 7475.

[13] Andrighetto G., Governatori G., Noriega P., Van der Torre L.W.N. Normative multi-agent systems. Wadern: Schloss Dagstuhl-Leibniz-Zentrum fuer Informatik; . Dagstuhl Follow-Ups. 2013;vol. 4.

[14] Zambonelli F., Viroli M. A survey on nature-inspired metaphors for pervasive service ecosystems. Int. J. Pervasive Comput. Commun. 2011;7(13):186–204.

[15] Bass L., Clements P., Kazman R. Software Architecture in Practice. third ed. Boston, MA: Addison-Wesley Professional; 2012.

[16] Gomaa H., Hashimoto K., Kim M., Malek S., Menascé D.A. Software adaptation patterns for service-oriented architectures. In: Proceedings of the 25th ACM Symposium on Applied Computing, Dependable and Adaptive Distributed Systems, Sierre, Switzerland, March 22–26; 2010.

[17] Xiao L., Cai Y., Kazman R., Mo R., Feng Q. Identifying and quantifying architectural debts. In: Proceedings of the International Conference on Software Engineering (ICSE) 2016, (Austin, TX), May; 2016.

[18] Asundi J., Kazman R., Klein M. Using economic considerations to choose among architecture design alternatives. Technical report CMU/SEI-2001-TR-035, Software Engineering Institute, Carnegie Mellon University; 2001.

[19] Simon H. The Sciences of the Artificial. second ed. Cambridge, MA: MIT Press; 1981.

[20] Kazman R., Cai Y., Mo R., Feng Q., Xiao L., Haziyev S., Fedak V., Shapochka A. A case study in locating the architectural roots of technical debt. In: Proceedings of the International Conference on Software Engineering (ICSE) 2015, Florence, Italy, May; 2015.

[21] Shaw M., Garlan D. Software Architecture: Perspectives on an Emerging Discipline. Upper Saddle River, NJ: Prentice Hall; 1996.

[22] Esfahani N., Kouroshfar E., Malek S. Taming uncertainty in self-adaptive software. In: Proceedings of the 19th ACM SIGSOFT Symposium and the 13th European Conference on Foundations of SEngineering (ESEC/FSE ′11); New York, NY, USA: ACM; 2011:234–244.

[23] Garlan D., Schmerl B., Chang J. Using gauges for architecture-based monitoring and adaptation. In: Proceedings of the Working Conference on Complex and Dynamic Systems Architecture, Brisbane, Australia, 12–14 December; 2001.

[24] Garlan D., Cheng S.-W., Schmerl B. Increasing system dependability through architecture-based self-repair. In: de Lemos R., Gacek C., Romanovsky A., eds. Architecting Dependable Systems. Berlin, Heidelberg: Springer-Verlag; 2003.

[25] Oreizy P., Medvidovic N., Taylor R.N. Architecture-based runtime software evolution. In: Proceedings of the 20th International Conference on Software Engineering (ICSE ′98); Washington, DC, USA: IEEE Computer Society; 1998:177–186.

[26] Garlan D., Cheng S.-W., Huang A.-C., Schmerl B., Steenkiste P. Rainbow: architecture-based self adaptation with reusable infrastructure. Computer. 2004;37(10):46–54.

[27] Ali N., Solis C. Self-adaptation to mobile resources in service oriented architecture. In: Proceedings of the 2015 IEEE International Conference on Mobile Services (MS), New York, NY; 2015:407–414.

[28] Cheng S.-W., Garlan D. Stitch: a language for architecture-based self-adaptation. In: Weyns D., Andersson J., Malek S., Schmerl B., eds. State of the Art in Self-Adaptive Systems. J. Syst. Softw. 2012;85(12) (Special Issue).

[29] Cheng S.-W. Rainbow: cost-effective software architecture-based self-adaptation. Ph.D. Thesis, Institute for Software Research technical report CMU-ISR-08-113, Pittsburgh, PA: Carnegie Mellon University; May 2008.

[30] Schmerl B., Cámara J., Gennari J., Garlan D., Casanova P., Moreno G.A., Glazier T.J., Barnes J.M. Architecture-based self-protection: composing and reasoning about denial-of-service mitigations. In: HotSoS 2014: 2014 Symposium and Bootcamp on the Science of Security, Raleigh, NC, USA, 8–9 April; 2014.

[31] Casanova P., Garlan D., Schmerl B., Abreu R. Diagnosing unobserved components in self-adaptive systems. In: Proceedings of the 9th International Symposium on Software Engineering for Adaptive and Self-Managing Systems, Hyderabad, India, 2–3 June; 2014.

[32] Cámara J., Lopes A., Garlan D., Schmerl B. Adaptation impact and environment models for architecture-based self-adaptive systems. In: Science of Computer Programming. 2016 http://dx.doi.org/10.1016/j.scico.2015.12.006 .

[33] Fernandez-Marquez J.L., Di Marzo Serugendo G., Snyder P.L., Valetto G., Zambonelli F. A pattern-based architectural style for self-organizing software systems. In: Suri N., Cabri G., eds. Adaptive, Dynamic, and Resilient Systems. Boca Raton, FL: CRC Press; 2014.

[34] Brun Y. Building biologically-inspired self-adapting systems. In: Cheng B.H., et al., eds. Proceedings of the Schloss Dagstuhl Seminar 08031: Software Engineering for Self-Adaptive Systems; 2008.

[35] Mirandola R., Perez-Palacin D., Scandurra P., Brignoli M., Zonca A. Business process adaptability metrics for QoS-based service compositions. In: Service Oriented and Cloud Computing: 4th International European Conference (ESOCC 2015); New York: Springer; . LNCS. September 2015;vol. 9306.

[36] Gandhi A., Dube P., Karve A., Kochut A., Zhang L. Adaptive, model-driven autoscaling for cloud applications. In: Proceedings of the 11th International Conference on Autonomic Computing, June 18–20; 2014.

[37] Ardagna D., Pernic B. Global and local QoS constraints guarantee in web service selection. In: Proceedings of the IEEE International Conference on Web Services (ICWS '05). Washington, DC: IEEE Computer Society; 2005:805–806.

[38] Nallur V., Bahsoon R. A decentralized self-adaptation mechanism for service-based applications in the cloud. IEEE Trans. Softw. Eng. 2013;39(5):591–612.

[39] Canfora G., Di Penta M., Esposito R., Luisa Villani M. An approach for QoS-aware service composition based on genetic algorithms. In: Proceedings of the Conference on Genetic and Evolutionary Computation; 2005:1069–1075.

[40] Liu H., Zhong F., Ouyang B., Wu J. An approach for QoS-aware web service composition based on improved genetic algorithm. In: Proceedings of the 2010 International Conference on Web Information Systems and Mining (WISM), vol. 1, 23–24 October; 2010:123–128.

[41] Zhang W., Chang C.K., Feng T., Jiang H.-y. QoS-based dynamic web service composition with ant colony optimization. In: Proceedings of the IEEE 34th Annual Computer Software and Applications Conference, July; 2010:493–502.

[42] Dellini V., Casalicchio E., Grassi V., Iannucci S., Lo Presti P., Mirandola R. MOSES: a framework for QoS driven runtime adaptation of service-oriented systems. IEEE Trans. Softw. Eng. 2012;38(5):1138–1159.

[43] Hallsteinsen S., Geihs K., Paspallis N., Eliassen F., Horn G., Lorenzo J., Mamelli A., Papadopoulos G.A. A development framework and methodology for self-adapting applications in ubiquitous computing environments. J. Syst. Softw. 0164-12122012;85(12):2840–2859.

[44] Menasce D., Gomaa H., Malek S., Sousa J.P. SASSY: a framework for self-architecting service-oriented systems. IEEE Softw. 2011;28(6):78–85.

[45] Bowles J.B., Bonnel R.D. Failure mode, effects, and criticality analysis. In: Annual Reliability and Maintainability Symposium, Tutorial Notes; 1993:1–36.

[46] Pascual G.G., Pinto M., Fuentes F. Self-adaptation of mobile systems driven by the common variability language. Futur. Gener. Comput. Syst. 2015;47:127–144.