Professional Documents
Culture Documents
Lecture-4 Architectural Structures: Software Design and Architecture
Lecture-4 Architectural Structures: Software Design and Architecture
Architectural Structures
Software Design and Architecture (Spring 2019)
Aamir Anwar
Lecturer CS & IT Dr. Awais Majeed
UOL Islamabad Campus
awais.majeed@bui.edu.pk
Importance of Software Architecture
Implementation constraints
Implementation must follow the structural design decisions
Managing change
• 80% of the cost is after initial deployment
• Change can be partitioned into 3 groups:
• Local: modify a single element
• Non-local: multi-element change
•Module Structure
•Component & Connector Structure
•Allocation Structure
Types of Architectural Structures
Module structure
• The elements are modules – units of implementation
• Assigned areas of functional responsibilities
• What is the primary functional responsibility assigned to
each module?
Decomposition
Relationship between modules is “is a sub-module of”
Think of an example?
Module based structures …
Class or generalisation
• The module units in this structure are called
classes
• The relation is "inherits-from" or "is-an-
instance-of."
• This view supports reasoning about collections
of similar behavior or capability
Component-and-Connector
Process or communicating processes
• deals with the dynamic aspects of a running system
• The units here are processes or threads that are
connected with each other by communication,
synchronization, and/or exclusion operations.
• The relationship is of attachment, showing how the
components and connectors are hooked together
• It is important to design a system's execution
performance and availability.
Component-and-Connector …
Concurrency
• A structure which allows the architect to determine
opportunities for parallelism and the locations where
resource contention may occur
• The units are components and the connectors are "logical
threads."
• A logical thread is a sequence of computation that can be allocated
to a separate physical thread later in the design process.
Shared data, or repository
• components and connectors that create, store, and access
persistent data
Component-and-Connector …
Client-server
• A structure of components and connectors for a system built
as a group of cooperating clients and servers
• The components are the clients and servers
• the connectors are protocols and messages they share to
carry out the system's work
• Useful for
• separation of concerns
• for physical distribution, and
• for load balancing (supporting runtime performance).
Allocation
Deployment
• The deployment structure shows how software is
assigned to hardware-processing and communication
elements
• The elements are software (usually a process from a
component-and-connector view), hardware entities
(processors), and communication pathways.
• Relations are "allocated-to,"
• which physical units the software elements reside,
• "migrates-to," if the allocation is dynamic
Allocation …
Implementation
• This structure shows how software elements (usually
modules) are mapped to the file structure(s) in:
• system's development,
• integration, or
• configuration control environments.
• Helpful in the management of development activities
and build environment
Allocation …
Work Assignment
• This structure assigns responsibility for implementing
and integrating the modules to the appropriate
development teams
• Work assignment structure has architectural as well as
management implications
Which structure to choose?