Architecting for Quality with Quality Attributes
local graph
Chapter 9 — Architecting for Quality with Quality Attributes
Section titled “Chapter 9 — Architecting for Quality with Quality Attributes”“Architecture should speak of its time and place, but yearn for timelessness.”
– Frank Gehry, architected the iconic Dancing House in Prague
The previous chapter explained the DevOps and automation segment of technical agility by examining the importance of fostering DevOps culture and architecting for continuous delivery. This chapter will focus on the third segment of technical agility – built-in quality.
Mission-critical applications must be anti-fragile and consistently deliver services without degradation of quality. Failures can have severe consequences for the business, such as revenue loss, customer dissatisfaction, and even, in some cases, health and safety issues. Therefore, a methodological approach for building quality into the software development process is crucial. To achieve this, we need to learn a mechanism of connecting measurable business outcomes such as revenue loss to quality attributes such as scalability. Built-in quality also needs to consider a balanced approach between risk and cost to eliminate potential wastage as quality costs money. To practice this, we need to foster an Agile approach by incrementally defining, negotiating, measuring, and improving quality. Architects play a significant role throughout the quality life cycle by embracing a systems thinking mindset.
This chapter starts by covering the importance of quality in software systems and explains the evolvability of quality, the need for systems thinking, and the concept of built-in quality. Then, we will review various quality attribute models and different ways to document quality attributes consistently. Later, we will examine different quality life cycle stages and related activities that ensure quality is not compromised in the delivery stages. Throughout this chapter, we will discuss the architect’s role in ensuring the quality of solutions at scale.
In this chapter, we’re going to cover the following main topics:
- Understanding software quality
- Adopting a quality attribute model
- Documenting quality attributes
- Using the quality life cycle in Agile software development
- Discovering and refining quality attributes
- Modeling and simulation
- Applying architecture trade-offs
- Developing quality attributes
- Assessing system quality
This chapter focuses on the Built In Quality focal point of the Agile Architect’s Lens, which is illustrated in the following figure:

Figure 9.1 – Built In Quality – focal point
We will start this chapter by exploring the basics of software quality and its importance when building highly reliable and anti-fragile systems.
Understanding software quality
Section titled “Understanding software quality”System quality is a measure of how well a system behaves under certain operating conditions and how well it evolves to handle future demands satisfactorily. One of the most significant responsibilities of Agile architects is to incrementally and explicitly capture quality needs and connect them to architecture decisions and backlogs. Many terminologies, such as quality characteristics, quality attributes, quality concerns, architecture concerns, technical requirements, Architecturally Significant Requirements (ASRs), and Non-Functional Requirements (NFRs), are interchangeably used for describing the quality requirements of software systems. This book uses quality attributes and ASR to refer to quality needs that constrain or influence architecture and design decisions.
Inaccuracy in detecting and implementing quality attributes can have adverse repercussions on the endurance of systems, which further leads to higher maintenance and operating costs. Poor-quality solutions result in substantially higher cycle times due to late detection, reworks, and retest of quality issues. As an example, Innovate was an ambitious and expensive program run by McDonald’s, the global fast-food chain. With a 1 billion USD budget, Innovate started, in 1999, to build software to automate the entire fast food outlet. The idea was to collect information from all food outlets and present a boardroom view to its leadership so that operations could be monitored and improved in real time. Unfortunately, Innovate was canceled in 2002 and wrote off 170 million USD. Research studies observed that one of the key reasons for its failure was underestimating the technical complexities and quality needs beyond the stated user requirements. Therefore, focused attention on quality attributes is paramount.
IEEE 1061-1998 Standard for a Software Quality Metrics Methodology defines software quality as the ability of software to demonstrate behaviors such as reliability, interoperability, and so on. There is no one-size-fits-all mechanism for architecting and implementing quality attributes as they are directly influenced by the operating environment, consumption patterns, and business context.
The three forces influencing quality are shown in the following diagram:

Figure 9.2 – Forces influencing quality
For example, an architecture mechanism to improve performance may differ for an application deployed on mobile versus an application deployed on a cloud environment. Solutions vary with consumption patterns, such as a solution accessed once in a day versus a solution consumed 100 times in a second. Lastly, the performance mechanism for a solution used in a banking context varies from a tracking solution used in an Uber-style taxi service.
To get a clear understanding of these parameters, architects need to use the systems thinking concept, further explained in the next section.
Improving quality needs systems thinking
Section titled “Improving quality needs systems thinking”Architects building complex web-scale and reliable systems need a broader vision and comprehensive knowledge of the business and IT ecosystem. Localized designs and optimizations of specific components may not deliver the overall desired value to the business. Restricted thinking and a narrow solution mindset inhibit quality over time.
Systems thinking originated from the field of system dynamics and was and was introduced by MIT professor Jay Forrester in 1956. Systems thinking is an approach that helps solve problems with the system as a whole with a clear understanding of the system’s components, boundaries, interactions, and environment.
The key parameters of systems thinking are captured in the following diagram:

Figure 9.3 – Parameters of systems thinking
While conventional approaches focus on system components in isolation, systems thinking focuses on an expanded surface area even beyond the whole system by adding neighboring systems and their potential influences through interactions or sharing the environment.
The paper Overview of Systems Thinking by Daniel Aronson provides an excellent metaphor to explain systems thinking. He uses human action to reduce crop damage by insects as an example. When insects eat and destroy a crop, the farmer’s immediate response would be to apply a pesticide to kill all insects effectively. On the surface, this may look like a perfect solution. However, there could be better solutions if the farmer takes a broader view of the issue before fixing it. Applying pesticides can surely kill insects of type A, but it could result in the growth of another type of insect, B, beyond control. Initially, insect A used to eat insect B. In this case, killing insect A is not optimal as it will not solve longer-term insect issues. Integrated pest management is a better solution, in which to kill insect A, the farmer adds more of its predators.
The philosophy of systems thinking is the belief that system components in isolation behave differently than when the whole system operated together. Noisy neighbors can negatively impact the operating quality of a component.
In Agile software development, systems thinking is highly relevant as development teams always work with incremental changes, potentially leading to isolated solutions. These solutions designed in silos may not fit well with the overall solution vision and may fail to operate at scale. The architect’s responsibility is to provide the right directions based on a holistic, connected system view.
In addition to systems thinking, it is also important to realize that quality is not a one-time activity. It needs to be evolved with emerging business demands. In the next section, we will discuss more on the evolvability aspect of quality.
Incrementally applying quality with a build-to-adapt strategy
Section titled “Incrementally applying quality with a build-to-adapt strategy”While quality is important in delivering reliable software solutions, excessive focus upfront on quality may not guarantee the solution’s promises to customers infinitely. Build to last and build to adapt are two common strategies for baking quality into solutions during development. Build to last includes activities such as estimating and implementing 5 years’ capacity, building fail-proof systems, designing by future-proofing, and so on, whereas build to adapt is using evolvable architecture, on-demand elastic scaling, anti-frAgile systems, and so on. The fundamental premise of Agile architecture is no Big Upfront Design (BUFD), which is equally applicable when building quality.
The Choluteca bridge is living proof that build to adapt is better than build to last. The following is an illustration of the current state of the Choluteca bridge:

Figure 9.4 – Illustration of the Choluteca bridge
The Choluteca bridge is a 484-meter bridge built in 1998 in Honduras, a place prone to natural disasters. The goal was to build the strongest bridge that can withstand any natural disaster. Later that year, Hurricane Mitch devastated many places in Honduras, including nearby bridges and infrastructures. The Choluteca bridge – the high-quality architectural marvel – stood its test without any damage. However, sadly, the Choluteca river no longer flows under the bridge; it found a new path next to the bridge, making the bridge irrelevant.
Build to adapt is more appropriate for Agile software development where requirements may change the design even at the very last stage of delivery. Build to adapt is not just upscaling quality but also limiting. For example, in the unprecedented times of the global COVID-19 pandemic, many organizations reduced their scale of business operations, which means the cost of IT operations also had to be brought down to lower levels acceptable to present trading conditions.
Incremental development of quality also eliminates high upfront investment needs. For example, in the context of Snow in the Desert, the tracking microservice of the Automatic Vehicle Tracking System (AVTS) project does not need very high availability during the Minimum Viable Product (MVP) phase. But once the concept is proven and ready to scale across multiple markets, high availability is extremely important.
The continuous evolution of quality demands continuous quality assurance as well. An effective approach is to shift focus from post-quality assurance to applying quality at the source. The next section will go deeper into the built-in quality aspect of Agile software development.
Building in quality to eliminate waste
Section titled “Building in quality to eliminate waste”Built-In Quality (BIQ), or Jidoka, is one of the pillars of Lean manufacturing originating from the Toyota Production System (TPS). BIQ is a practice of building quality at every step of the process instead of in post-development quality assurance routines. BIQ reduces wastage by reducing recall, rework, and retest cycle times post-development.
BIQ is a Lean-Agile practice for continuously improving value. Effective adoption of BIQ needs a radical shift in mindset to a quality-driven culture by moving away from the build and test cycles to continually improving quality through rapid incremental testing and feedback cycles. BIQ is the shared responsibility of the team with a sense of purpose to achieve the ultimate goal of delivering business value. It focuses more on prevention by building quality at the source than testing against an infinite number of KPIs. BIQ enables high-quality solutions and improves customer satisfaction and speed of delivery.
BIQ promotes a quality-first approach by adopting a sense of quality in everything, including designing solutions using the right architecture, patterns, and techniques, adopting good coding practices, and including the right quality assurance routines in the development and continuous delivery pipeline.
The three levels of BIQ maturity are shown in the following diagram:

Figure 9.5 – The three maturity levels of BIQ
As depicted in the diagram, BIQ restricts defective work products flowing through the continuous delivery pipeline. The maturity is measured based on at what point faults are stopped from flowing to the next stage. For example, in Maturity 3, highly matured organizations practicing BIQ ensure defects are avoided by adopting well-established and streamlined preventive measures at the time of development, thereby forestalling faults entering the CI pipeline.
For accurately building quality, consistent definition and adoption of quality attributes are critical. The next section will examine different standard quality attribute models.
Adopting a quality attribute model
Section titled “Adopting a quality attribute model”Quality requirements are classified as business quality such as time to market, architecture quality or ASR, and system quality. A typical software quality attributes model defines a taxonomy for the definition of system qualities. There are many quality attributes models available in the industry.
A few popular quality attributes models are described as follows:
- IASA defines quality attributes as non-functional characteristics of a component or a system and classifies them into four categories – usage, development, operations, and security. There are subcategories under each one of them.
- FURPS is another commonly referenced quality model, which stands for Functionality, Usability, Reliability, Performance, and Supportability. SAFe uses FURPS for explaining NFRs.
- The IEEE Standard 1061 quality attribute model classifies quality attributes into efficiency, functionality, maintainability, portability, reliability, and usability.
- ISO 25010 is one of the modern quality attribute models defined in 2007, built on top of ISO 9126 evolved from McCall and Boehm.
The paper A Review of Software Quality Models for the Evaluation of Software Products defined several quality models created over the years from McCall in 1977 to MIDAS in 2013. The research observes that ISO 25010 is the most comprehensive quality attributes model for software-intensive systems.
The following diagram shows the quality attributes wheel based on the ISO 25010 quality attributes model:

Figure 9.6 – Quality attributes wheel based on ISO 25010
At Snow in the Desert, the ISO 25010 quality attributes model is adopted consistently across all teams and ARTs to ensure everyone, including business and IT stakeholders, uses a single frame of reference for quality attributes. Beyond definition, for effective communication and management of quality attributes, structured documentation is also critical. In the next section, we will explore approaches for documenting quality attributes.
Documenting quality attributes
Section titled “Documenting quality attributes”Quality starts from an accurate, structured, and consistent definition of quality attributes. Quality attributes are long-living representations useful for continuous improvements even after systems are deployed in production. Therefore, quality attributes have to be systematically maintained with periodic reviews.
Mannion and Keepence recommend using the SMART (Specific, Measurable, Attainable, Realizable, Traceable) model to capture measurable quality attributes with a high degree of accuracy without ambiguity. In this section, we discuss various SMART approaches for documenting quality attributes.
Using the scaled Agile approach for specifying quality attributes
Section titled “Using the scaled Agile approach for specifying quality attributes”Scaled Agile Framework (SAFe) uses NFRs as a terminology instead of quality attributes. The framework recommends defining NFRs within a bounded context, as independent as possible, negotiable, and testable. SAFe proposes a model as shown in the following diagram for describing NFRs:

Figure 9.7 – Documenting NFRs based on the SAFe approach
As captured in the diagram, every NFR is associated with a name, optionally sub-names, a scale, and a meter. Once NFR is defined, values are captured against a target, constraint, and baseline. When developing greenfield systems, it is hard to define a baseline as there is no current system reference point. The constraint is the bare minimum value, and the target is the desired state.
Using a quality attribute scenario
Section titled “Using a quality attribute scenario”A Quality Attribute Scenario (QAS) is a universal approach for documenting quality attributes as scenarios. The premise of QAS is a system or a component of a system running on an environment reacting measurably to an actor who initiates an action.
The following diagram captures the meta-model of the QAS along with an example:

Figure 9.8 – QAS meta-model and example
A scenario from Snow in the Desert’s Automatic Vehicle Tracking System (AVTS) is captured as an example in the preceding diagram, mapping Source, Stimulus, Artifact, Environment, Response, and Response measure. A mini-QAS is a simplified version that eliminates Environment and Artifact. QAS is extremely important for architects to get a clear understanding of the quality requirements. Structuring quality attributes with the QAS approach helps to foster better, more consistent communication with stakeholders.
Now that we have clarity on the quality attribute model and approaches for documenting QASes, we will now step through different the quality life cycle stages.
Using the quality life cycle in Agile software development
Section titled “Using the quality life cycle in Agile software development”Delivering high-quality solutions in Agile software development needs continuous focused attention on quality. The following diagram defines the five life cycle stages of delivering quality:

Figure 9.9 – Five stages of the quality life cycle in Agile software development
As captured in the diagram, the five life cycle stages for ensuring the system’s quality needs are as follows:
- Discovering and refining: Discover quality requirements to satisfy current and future needs of the customer.
- Modeling and simulation: Develop models and perform simulations to detect challenges as early as possible.
- Applying architecture trade-offs: Apply architecture trade-offs to ensure no overdoing of quality engineering with objective decisions.
- Developing quality with backlog: Implement architecture mechanisms as backlog items to avoid dropping significant quality-related tasks.
- Assessing system quality: Adopt incremental quality assurance throughout the continuous delivery pipeline.
The quality life cycle is a continuous activity starting with discovering and refining quality needs parallel to business feature identification and elaboration. The first iteration during the inception phase is critical. It helps to understand most of the cross-cutting concerns, such as the business criticality of the application, usage patterns, user distribution, deployment constraints, and so on. Subsequent incremental iterations of the quality life cycle are smaller and more straightforward, generally performed for every sprint for upcoming features.
These five quality life cycle stages are further explained in the subsequent sections, starting with discovering and refining quality attributes.
Discovering and refining quality attributes
Section titled “Discovering and refining quality attributes”Unlike business requirements, it is implausible to expect to receive accurate quality needs and expectations from the business stakeholders. Hence, focused attention led by architects to discover quality requirements is an absolute necessity. The discovery of quality attributes broadly consists of identifying stakeholders, conducting QAWs, and refining QASes. The following sections cover these in detail, starting with capturing the stakeholder matrix.
Aligning stakeholders to quality attributes
Section titled “Aligning stakeholders to quality attributes”The stakeholder matrix is an immensely useful tool for understanding stakeholder needs, performing trade-off analysis, determining the impact of architecture decisions, and mitigating potential risks. It is also incredibly powerful for architects to understand, communicate, and negotiate quality attributes with relevant stakeholders. The stakeholder matrix is generally captured once at the beginning and revisited in every iteration as required.
There are several models for stakeholder analysis. The following diagram shows Mendelow’s power-interest grid model:

Figure 9.10 – Mendelow’s power-interest grid model for stakeholder analysis
As shown in the diagram, each stakeholder is mapped into one of the four quadrants. Imperial College London’s influence-interest grid uses a similar approach in which power is replaced by influence. Mitchell’s model is a bit more comprehensive, based on power, urgency, and legitimacy, which will be discussed later in this chapter.
Once stakeholders are identified for a set of features, the next step is to conduct a quality attribute workshop, which is explained in the next section.
Conducting a quality attribute workshop
Section titled “Conducting a quality attribute workshop”A Quality Attribute Workshop (QAW) is a mechanism to discover QASes by engaging all relevant stakeholders identified in the stakeholder matrix. The input for a QAW is a quality attribute model, and the output is a set of prioritized QASes mapped to stakeholders with business impacts. Instead of a full QAW, a mini-QAW is recommended in Agile software development to save time.
The mini-QAW during the inception phase may consume a few hours. In contrast, subsequent mini-QAWs at every iteration for upcoming features are generally conducted in a smaller, informal setup, no longer than 30 minutes.
A typical mini-QAW schedule during the inception phase is shown in the following diagram:

Figure 9.11 – Mini-QAW agenda
The following steps explain the agenda items shown in the preceding diagram:
- Mini-QAW introduction: This sets the stage by defining the purpose and activities during the workshop. If stakeholders are new to this solution context, architects also introduce the solution vision and intended architecture.
- Introduction to quality attributes: This is to make the attendees familiar with the quality attributes to develop appropriate QASes. It is essential to explain quality attributes using the business language mentioned in Chapter 6, Delivering Value with New Ways of Working, such as risk, cost, customer satisfaction, and competitive advantage.
- Scenario brainstorming: In this segment, architects choose to walk through either features or quality attributes. Stakeholders around the table brainstorm and capture QAS relevant to them based on their instinct and experience using sticky notes and attach them to the quality wheel, shown in Figure 9.6, next to the respective quality attributes. Stakeholders are encouraged to use informal and plain English for capturing QASes. Architects explain scenarios during brainstorming by correlating use cases from current systems and similar industry-popular systems and scenarios.
- Scenario prioritization: There are different approaches for prioritization, such as MoSCoW, Quality Function Deployment (QFD), the dot method, and so on. The dot method is the most straightforward and is quite popular with QAWs. Stakeholders add an allocated number of dots to quality attributes and QASes based on their priorities. Prioritization helps architects later in the trade-off analysis. Often, stakeholders also capture the business impact or risk of not meeting the QAS.
- Once scenarios are captured, architects work offline to refine and validate those scenarios before playing them back to stakeholders, which is explained next.
Refining QASes and playback
Section titled “Refining QASes and playback”Refinement is an offline activity after the mini-QAW. During the refinement activity, architects convert QASes into a proper structure and map the stakeholder, business impact, and priorities captured during the mini-QAW.
The following diagram captures the output of refinement:

Figure 9.12 – QAS after refinement
The diagram captures sample scenarios from the context of Snow in the Desert’s AVTS initiative. Refined QASes are replayed to all stakeholders as necessary to validate and baseline before designing the right solution. Solution identification starts with modeling solution options, which is covered in the next section.
Modeling and simulation
Section titled “Modeling and simulation”Modeling and simulation are effective mechanisms for validating solutions against a given set of parameters without investing time and effort into development. Baselined QASes are captured in the architecture decision backlog for appropriate solution decisions. As discussed in Chapter 5, Agile Solution Architect – Designing Continuously Evolving Systems, these architecture decision backlogs are scheduled based on the Last Responsible Moment (LRM).
As part of processing the architecture decisions backlog, the team keeps elaborating on multiple solution options. A critical activity is to model these solution options using various architecture and design models, such as sequence diagrams, domain model diagrams, context diagrams, component diagrams, and so on. Many models, such as workload models, deployment models, network models, user access models, and transaction models, are convenient in simulating and validating quality attributes.
A transaction model, shown in the following diagram, is one of the most helpful models to simulate quality conditions:
![]()
Figure 9.13 – Transaction model for the AVTS tracking service
The preceding diagram captures the tracking transaction in the context of Snow in the Desert’s AVTS solution. Quality attributes such as performance, availability, and scalability are limited to the lowest common denominator in the transaction model across a chain of systems. As shown in the diagram, a transaction model captures how transactions are spanned across multiple components, subsystems, services, and systems. Transaction models help determine performance hotspots, latency challenges due to external calls, systems with legacy technologies, slow performers, systems with reduced levels of availability and scalability, and so on.
Another model that is equally useful is the workload model, shown in the following diagram:
![]()
Figure 9.14 – Workload model for the AVTS tracking system
The preceding diagram captures critical transactions of AVTS. As shown in the diagram, the workload model captures a mix of transactions, distributions, expected response times, user types, the nature of transactions, and so on. This model helps understand the system’s behavior and acts as an input for building load testing scenarios.
It is quite common that an architecture decision may impact more than one quality attribute. Often, one adversely affects the other. In such cases, a trade-off analysis needs to be performed. The next section further explains the trade-off analysis process.
Applying architecture trade-offs
Section titled “Applying architecture trade-offs”Architecture trade-off analysis is an extremely important activity for evaluating solutions against quality goals to make informed decisions. Implementing quality requires compromise as achieving everything is not possible. This trade-off is similar to what the CAP theorem states: a distributed database system can only guarantee two qualities out of consistency, availability, and partition tolerance. Some quality attributes may be cost-prohibitive, some may exponentially increase complexity, and some may have strong interdependencies with another quality attribute where improving one may bring the other down.
Vasa, a Swedish warship, is a classic example of building too much quality into a product without trade-offs. In the 1620s, Poland-Lithuania and Sweden were at war. The Swedish king wanted to show off their power and naval superiority by building a gun platform on a large, heavily armed ship that could also transport soldiers. The engineers built a vessel that no one had ever thought of before – a massive warship, 226 feet long, with 64 guns, 145 sailors, and 300 soldiers with two-gun decks. There were many firsts in Vasa – combining passengers and artillery, the number of guns, two-gun decks, and so on. Even though the ship was built as per the specifications, unfortunately, it sank on its maiden voyage as the bottom-heavy ship caught strong winds after sailing 1,300 meters from the harbor. The main reason for its failure was its instability as the ship’s architect included way too many things without considering trade-offs. Even though the architect knew Vasa was a risky undertaking, they were not ready to go back to the king and share their challenges.
Architectural decisions conflicting with more than one quality attribute need trade-off analysis. Trade-offs are calculated based on parameters such as economic aspects, time to market, customer satisfaction, resource skills, and so on. Architects use stakeholder maps and business priorities captured as part of the mini-QAW for negotiating with relevant stakeholders.
There are a few standard methods for architecture trade-off analysis, which are discussed in the following sections.
Using the architecture trade-off analysis method
Section titled “Using the architecture trade-off analysis method”The Architecture Trade-Off Analysis Method (ATAM) is one of the oldest architecture analysis methods developed by the Software Engineering Institute. Using ATAM, architects can identify potential risks of a proposed solution and transparently communicate risks to relevant stakeholders.
ATAM evaluates architecture decisions against three parameters – trade-offs, sensitivity points, and risks. However, ATAM is complex, consumes time and effort, and is not visually appealing. In cost-critical scenarios, architects can also use the Cost-Benefit Analysis Method (CBAM) before concluding large-scale investment decisions.
Using the solution architecture review method
Section titled “Using the solution architecture review method”The Solution Architecture Review Method (SARM) is another substantially simple but more powerful method developed by Simon Field. It helps to identify the strengths and weaknesses of candidate solutions in terms of risk.
In SARM, QASes and ASRs are mapped to stakeholders using Mitchell’s stakeholder model – based on power, urgency, and legitimacy. Once stakeholders are identified, ASRs are mapped to one or more stakeholders by capturing their interests as Strong Interest, Interest, or No Interest. SARM adopted a risk impact approach for prioritizing QASes. The risk impact approach is based on five parameters – Catastrophic, Major, Moderate, Minor, and Negligible – to indicate the impact of not meeting the QAS.
An evaluation of a sample scenario using SARM is given in the following diagram:

Figure 9.15 – SARM for trade-off analysis
The diagram captures the solution decision for AVTS and its trade-offs. Two solution options for AVTS are in-house development or acquiring a third-party product, as explained in Chapter 5, Agile Solution Architect – Designing Continuously Evolving Systems. The diagram only captures a few quality attributes for simplicity. As indicated in the last two columns of the preceding diagram, the architect chooses the risk exposure for each solution option based on a risk likelihood model – Rare, Unlikely, Possible, Likely, and Almost Certain. Once the evaluation is done, SARM provides an opportunity to visualize the aggregate risk burden of each solution option together with the impact on stakeholders, as shown in the following diagram:

Figure 9.16 – SARM risk trade-off and stakeholder impact model in the context of AVTS
The preceding trade-off diagram uses the decision point between GPS devices or mobile phones as tracking devices discussed in Chapter 5, Agile Solution Architect – Designing Continuously Evolving Systems. As captured in the preceding diagram, option 1, Mobile Phones, has the lowest risk exposure score, 64.98, and hence it is better than option 2, GPS Devices, which has a risk exposure score of 67.3. Similarly, option 1 satisfies most of the customers except the Current Device Supplier. SARM’s visual model provides an excellent mechanism to perform trade-offs and make an informed selection of solutions from the candidate options. SARM can also be used for cost-benefit analysis when required.
Once the decisions are formulated, development teams must allocate sufficient time for developing quality attributes. Adding backlog items for quality-related development is decisive for development teams to plan and execute without dropping quality. The next section covers the recommended practices for including quality in the development backlog.
Developing quality attributes
Section titled “Developing quality attributes”Once the architecture decisions are made, the next step is to make that decision ready for the teams to implement. Pushing quality attributes to teams for development and compliance is a big challenge and is one of the most debated points in the Agile software development community.
There is no one-size-fits-all solution for this challenge; however, a combination of the following three approaches helps in overcoming this challenge:
- Technical backlog items: Some of the quality attributes need specific work from the team, such as developing a replication solution for the database or building the high availability of microservices. Such scenarios are converted and captured as user stories.
- Backlog constraints: In most cases, once the base solution is available, such as high availability or a shared data cache for faster customer access, several other user stories need to comply with the solution. In those cases, constraints such as acceptance criteria are added against those backlog items.
- The Definition of Done (DoD): Similar to acceptance criteria, DoD captures quality attributes as a checklist item to ensure teams comply with quality attributes. Using DoD is particularly useful when each user story cannot be tested for a particular quality attribute. In such cases, DoDs are attached to a sprint or a release to ensure compliance. In most cases, quality attributes start as backlog items, then once implemented, they are attached as constraints to subsequent user stories or are added as part of DoD for sprints and releases. Capacity allocation, mentioned in Chapter 6, Delivering Value with New Ways of Working, is an important aspect when working with quality attributes to ensure spend enough time on developing quality. Adopting built-in quality needs to ensure quality right at the source.
The next section explores system quality assessment.
Assessing system quality
Section titled “Assessing system quality”Stop-the-line is a technique used in manufacturing introduced by Taiichi Ohno of TPS, where a big red button is pushed whenever someone sees a critical quality issue in the production line. The idea was products with quality issues moved to production have much more severe consequences than stopping the line and fixing problems as and when they occur. Early detection and rectification of defects minimizes wastage. Hence, early and continuous quality assurance is required for the efficient delivery of quality solutions with optimal cost of development.
Brian Marick’s Agile testing quadrants are a useful tool to understand various aspects of Agile testing. An adapted version of this was developed by Janet Gregory and Lisa Crispin is shown on the left side of the following figure:

Figure 9.17 – Agile testing quadrants and risk-based performance testing model
As shown in the figure, architecture quality testing is in Q4, in which the best outcome is possible when the product is reasonably shaped up for production release. Often, quality tests are effort, time, and resource-consuming activities. If all tests are not possible, a risk-based automated performance testing approach by batches proposed by Tim Hinds and Steve Weisfeldt is useful for prioritizing a large number of performance testing scenarios. This model is shown on the right side of the preceding diagram.
Continuous and automated validations are possible with integrated quality checks at the time of development. Also, automating quality assurance routines with constant delivery pipelines eliminates human error.
Integrating quality checks in development
Section titled “Integrating quality checks in development”Integrating code profiling tools with IDEs helps us to understand code performance, such as the number of database calls, the response time of SQL, data access hotspots, the performance of messaging, overheads of external calls, CPU profiling, memory leaks, the response time of methods, throughput, thread profiling, and so on. Using performance unit testing frameworks as IDE plugins can detect throughput per second, the method execution time for various scenarios, and so on.
Automated quality assurance tests, such as performance, security, resource profiling, network profiling, and so on, have to be integrated with the continuous delivery pipelines with appropriate monitoring mechanisms to detect quality issues as early as possible. Fitness functions are useful techniques for validating architecture and quality attributes.
Using fitness functions
Section titled “Using fitness functions”A fitness function is a concept borrowed from evolutionary computing and was introduced by ThoughtWorks. An architecture fitness function is a mechanism to define what is expected from an architecture capability. ThoughtWorks explains architecture fitness functions as test functions that provide an objective integrity assessment of architectural characteristics. It is an objective function that asserts how close implementation is aligned with the intent and objective. Fitness Function-Driven Development (FFD) is a useful technique for ensuring built-in architecture compliance.
Automated fitness functions are not just enough for covering all architectural aspects. Monitoring-Driven Development (MDD) is increasingly gaining popularity. MDD uses monitoring of various parameters in different environments for capturing system health continuously.
Evaluating using the Well-Architected Framework
Section titled “Evaluating using the Well-Architected Framework”AWS first introduced the Well-Architected Framework to analyze workloads’ quality against five pillars: operational excellence, performance efficiency, security, cost optimization, and reliability. It was later adopted by other cloud providers, such as Microsoft and Google, as well.
The AWS Well-Architected Tool provides an excellent mechanism to review workloads against a consistent yardstick. It promotes best practices and patterns for cloud-native deployment, understands and manages risks appropriately, and identifies areas to invest with objective measures. Snow in the Desert adopted the Well-Architected Framework and consistently and regularly maintained dashboards to show the state of systems against five pillars.
The following diagram shows a sample dashboard coming out of the Well-Architected Framework:

Figure 9.18 – The Well-Architected Framework assessment outcome
Consistently maintaining the well-architected score in a dashboard, as shown in the preceding diagram, for all systems enables development teams to visualize the impact on quality after every release.
Summary
Section titled “Summary”In this chapter, we have learned about the importance of quality in software systems. There is no one-size-fits-all solution for quality as it is heavily influenced by the environment, business context, and consumption patterns. Systems thinking, continuous evolution, and built-in quality are three key aspects architects need to be well aware of when building long-lasting, resilient systems.
We have learned about different quality attribute models and QASes for consistent use of taxonomies and documentation. We have studied the importance of quality at every stage of development by examining the quality life cycle stages, commencing with discovery and refinement, which occur parallel to business features discovery and refinement. The QAW is one of the most critical activities for architects to discover and prioritizes quality attributes by engaging all stakeholders identified using a stakeholder matrix. Architects further refine QASes gathered in the workshop and play them back to stakeholders for baselining. Baselined QASes are captured in the architecture decision backlog for making decisions.
Architects use modeling and simulation to validate solutions before development to detect potential early issues. Architects also use architecture trade-off assessments for making objective data-driven decisions. Backlog items and backlog constraints are created for development teams, guided by architects, to have focused attention on implementing quality attributes. Finally, architects foster continuous quality assessment techniques, such as IDE-based quality assurance, fitness functions, and the Well-Architected Framework, which are employed to ensure faults are identified at the earliest possibility and therefore minimize wastage.
In summary, this chapter covered how architects play a significant anchor role throughout the quality life cycle to ensure the solutions delivered meet the desired quality standards. Now that we have seen various aspects of technical agility, in the next chapter, we will be moving on to the next topic and exploring how to manage Lean architecture documentation in Agile software development.
Further reading
Section titled “Further reading”- Overview of systems thinking: http://www.thinking.net/Systems_Thinking/OverviewSTarticle.pdf
- Four Pillars for Improving the Quality of Safety-Critical Software-Reliant Systems: https://resources.sei.cmu.edu/asset_files/WhitePaper/2013_019_001_47803.pdf
- Software Architecture & Quality Attributes: https://sites.google.com/site/misresearch000/home/software-architecture-quality-attributes
- ATAM*: Method for Architecture Evaluation*: https://resources.sei.cmu.edu/asset_files/TechnicalReport/2000_005_001_13706.pdf
- Quality Attribute Workshops: https://resources.sei.cmu.edu/asset_files/TechnicalReport/2001_005_001_13862.pdf
- SARM: https://sarm.org.uk/documentation/
- A Review of Software Quality Models for the Evaluation of Software Products: https://www.researchgate.net/publication/269417429_A_Review_of_Software_Quality_Models_for_the_Evaluation_of_Software_Products
- AWS The Well-Architected Framework: https://docs.aws.amazon.com/wellarchitected/latest/framework/welcome.html
- Google Architecture Framework: https://cloud.google.com/architecture/framework/design-considerations
- Agile testing quadrants: https://labs.sogeti.com/guiding-development-Agile-testing-quadrants/