Topic 2 Notes
Topic 2 Notes
Introduction
The architecture of a system describes its major components, their relationships (structures), and
how they interact with each other. Software architecture and design includes several contributory
factors such as Business strategy, quality attributes, human dynamics, design, and IT environment.
We can segregate Software Architecture and Design into two distinct phases: Software
Architecture and Software Design.
In Architecture, nonfunctional decisions are cast and separated by the functional requirements. In
Design, functional requirements are accomplished.
Architecture serves as a blueprint for a system. It provides an abstraction to manage the system
complexity and establish a communication and coordination mechanism among components.
It defines a structured solution to meet all the technical and operational requirements,
while optimizing the common quality attributes like performance and security.
Further, it involves a set of significant decisions about the organization related to software
development and each of these decisions can have a considerable impact on quality,
maintainability, performance, and the overall success of the final product. These decisions
comprise of −
o Selection of structural elements and their interfaces by which the system is
composed.
o Behavior as specified in collaborations among those elements.
o Composition of these structural and behavioral elements into large subsystem.
o Architectural decisions align with business objectives.
o Architectural styles guide the organization.
Goals of Architecture
The primary goal of the architecture is to identify requirements that affect the structure of the
application. A well-laid architecture reduces the business risks associated with building a technical
solution and builds a bridge between business and technical requirements.
Some of the other goals are as follows −
Expose the structure of the system, but hide its implementation details.
Realize all the use-cases and scenarios.
Try to address the requirements of various stakeholders.
Handle both functional and quality requirements.
Reduce the goal of ownership and improve the organization’s market position.
Improve quality and functionality offered by the system.
Improve external confidence in either the organization or system.
Limitations
Software architecture is still an emerging discipline within software engineering. It has the
following limitations −
Lack of tools and standardized ways to represent architecture.
Lack of analysis methods to predict whether architecture will result in an implementation
that meets the requirements.
Lack of awareness of the importance of architectural design to software development.
Lack of understanding of the role of software architect and poor communication among
stakeholders.
Lack of understanding of the design process, design experience and evaluation of design.
Quality Attributes
Quality is a measure of excellence or the state of being free from deficiencies or defects. Quality
attributes are the system properties that are separate from the functionality of the system.
Implementing quality attributes makes it easier to differentiate a good system from a bad one.
Attributes are overall factors that affect runtime behavior, system design, and user experience.
They can be classified as −
Static Quality Attributes
Reflect the structure of a system and organization, directly related to architecture, design, and
source code. They are invisible to end-user, but affect the development and maintenance cost, e.g.:
modularity, testability, maintainability, etc.
Dynamic Quality Attributes
Reflect the behavior of the system during its execution. They are directly related to system’s
architecture, design, source code, configuration, deployment parameters, environment, and
platform.
They are visible to the end-user and exist at runtime, e.g. throughput, robustness, scalability, etc.
Quality Scenarios
Quality scenarios specify how to prevent a fault from becoming a failure. They can be divided into
six parts based on their attribute specifications −
Source − An internal or external entity such as people, hardware, software, or physical
infrastructure that generate the stimulus.
Stimulus − A condition that needs to be considered when it arrives on a system.
Environment − The stimulus occurs within certain conditions.
Artifact − A whole system or some part of it such as processors, communication channels,
persistent storage, processes etc.
Response − An activity undertaken after the arrival of stimulus such as detect faults,
recover from fault, disable event source etc.
Response measure − Should measure the occurred responses so that the requirements can
be tested.
Key Principles
Software architecture is described as the organization of a system, where the system represents a
set of components that accomplish the defined functions.
Architectural Style
The architectural style, also called as architectural pattern, is a set of principles which shapes
an application. It defines an abstract framework for a family of system in terms of the pattern of
structural organization.
The architectural style is responsible to −
Provide a lexicon of components and connectors with rules on how they can be combined.
Improve partitioning and allow the reuse of design by giving solutions to frequently
occurring problems.
Describe a particular way to configure a collection of components (a module with well-
defined interfaces, reusable, and replaceable) and connectors (communication link between
modules).
The software that is built for computer-based systems exhibit one of many architectural styles.
Each style describes a system category that encompasses −
A set of component types which perform a required function by the system.
A set of connectors (subroutine call, remote procedure call, data stream, and socket) that
enable communication, coordination, and cooperation among different components.
Semantic constraints which define how components can be integrated to form the system.
A topological layout of the components indicating their runtime interrelationships.
Types of Architecture
There are four types of architecture from the viewpoint of an enterprise and collectively, these
architectures are referred to as enterprise architecture.
Business architecture − Defines the strategy of business, governance, organization, and
key business processes within an enterprise and focuses on the analysis and design of
business processes.
Application (software) architecture − Serves as the blueprint for individual application
systems, their interactions, and their relationships to the business processes of the
organization.
Information architecture − Defines the logical and physical data assets and data
management resources.
Information technology (IT) architecture − Defines the hardware and software building
blocks that make up the overall information system of the organization.
Architecture Models
Software architecture involves the high-level structure of software system abstraction, by using
decomposition and composition, with architectural style and quality attributes. A software
architecture design must conform to the major functionality and performance requirements of the
system, as well as satisfy the non-functional requirements such as reliability, scalability,
portability, and availability.
A software architecture must describe its group of components, their connections, interactions
among them and deployment configuration of all components.
A software architecture can be defined in many ways −
UML (Unified Modeling Language) − UML is one of object-oriented solutions used in
software modeling and design.
Architecture View Model (4+1 view model) − Architecture view model represents the
functional and non-functional requirements of software application.
ADL (Architecture Description Language) − ADL defines the software architecture
formally and semantically.