SlideShare ist ein Scribd-Unternehmen logo
1 von 34
Software Architecture: Foundations, Theory, and Practice
Copyright © Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy. All rights reserved.
Analysis of
Software Architectures
Software Architecture
Horia Constantin & original authors
Software Architecture: Foundations, Theory, and Practice
2
Software Architecture: Foundations, Theory, and Practice; Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy; © 2008 John Wiley & Sons, Inc. Reprinted with permission.
 Objective: Not needing to read that chapter of the
book unless you have a really specific question.
 Assumption: minimal participation from you
 Tip for not getting bored: ASK QUESTIONS
whenever something is unclear.
Software Architecture: Foundations, Theory, and Practice
Architectural Analysis in a Nutshell
3
Software Architecture: Foundations, Theory, and Practice; Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy; © 2008 John Wiley & Sons, Inc. Reprinted with permission.
Software Architecture: Foundations, Theory, and Practice
4
Software Architecture: Foundations, Theory, and Practice
What Is Architectural Analysis?
 Architectural analysis is the activity of
discovering important system properties
using the system’s architectural models.
 Important to know
1. which questions to ask
2. why to ask them
3. how to ask them
4. how to ensure that they can be answered
5
Software Architecture: Foundations, Theory, and Practice
Take home! – summary slide
 Analysis means:
Setting a goal (what do we want to analyze?)
Defining the scope (what area are we focusing on?)
Defining the concern – not sure about this one
Establishing the formality level
(optional) Analysis type/automation?(how will the
analysis be done?)
 Don’t forget about the economical analysis of
architecture!
6
Software Architecture: Foundations, Theory, and Practice
What is the purpose of analysis?
 Early (before development), useful answers about
relevant architectural aspects
 discover components to be grabbed off the shelf.
 Just having the architecture is not enough…
7
Software Architecture: Foundations, Theory, and Practice
8
Software Architecture: Foundations, Theory, and Practice
Architectural Analysis Goals
 The four “C”s
Completeness
Consistency
Compatibility
Correctness
9
Software Architecture: Foundations, Theory, and Practice
Architectural Analysis Goals –
Completeness
 Does the architecture capture all of a system's key
functional and non-functional requirements?
 Have all elements been fully modeled in the notation?
 Have all design decisions been properly captured?
10
Client Client Client
Server
Incomplete!
Client Client
Server
Complete
Client
Server
Software Architecture: Foundations, Theory, and Practice
Architectural Analysis Goals –
Consistency
 Ensures that different model elements do not
contradict one another
 Dimensions of architectural consistency
Name
Interface
Behavior
Interaction
Refinement
11
Software Architecture: Foundations, Theory, and Practice
Consistency fun test incoming
12
Software Architecture: Foundations, Theory, and Practice
Name Consistency
 Component and connector names
 Component service names
 May be non-trivial to establish at the architectural level
Multiple system elements/services with identical
names
Loose coupling via publish-subscribe or
asynchronous event broadcast
Dynamically adaptable architectures
13
Software Architecture: Foundations, Theory, and Practice
Interface Consistency
 Encompasses name consistency
 Also involves parameter lists in component services
 A rich spectrum of choices at the architectural level
 Example: matching provided and required interfaces
ReqInt: getSubQ(Natural first, Natural last, Boolean remove)
returns FIFOQueue;
ProvInt1: getSubQ(Index first, Index last)
returns FIFOQueue;
ProvInt2: getSubQ(Natural first, Natural last, Boolean remove)
returns Queue;
14
Software Architecture: Foundations, Theory, and Practice
Behavioral Consistency
 Names and interfaces of interacting components may match, but
behaviors need not
 Example: subtraction
subtract(Integer x, Integer y) returns Integer;
Can we be sure what the subtract operation does?
15
Software Architecture: Foundations, Theory, and Practice
Interaction Consistency
16
 Names, interfaces, and behaviors of interacting
components may match, yet they may still be unable
to interact properly
Software Architecture: Foundations, Theory, and Practice; Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy; © 2008 John Wiley & Sons, Inc. Reprinted with permission.
Software Architecture: Foundations, Theory, and Practice
Refinement Consistency
 Architectural models are refined during the design
process
 A relationship must be maintained between higher and
lower level models
All elements are preserved in the lower level model
All design decisions are preserved in the lower-level
model
No new design decisions violate existing design
decisions
17
Software Architecture: Foundations, Theory, and Practice
Refinement Consistency Example
18
Software Architecture: Foundations, Theory, and Practice; Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy; © 2008 John Wiley & Sons, Inc. Reprinted with permission.
Software Architecture: Foundations, Theory, and Practice
Consistency test?
19
A. Dequeue function in one interface only
polls the queue and the other one also
removes the element
B. Interface present in Product Architecture
is missing in the zoomed-in module
architecture
C. Invoke an operation after a close event or
before a component has been initialized
D. Included in another type
E. Client: getSubQ(Natural first, Natural
last, Boolean remove) Server:
getSubQ(Index first, Index last)
1. Name
2. Interface
3. Behavior
4. Interaction
5. Refinement
Software Architecture: Foundations, Theory, and Practice
Architectural Analysis Goals –
Compatibility
 Ensures that the architectural model adheres to
guidelines and constraints of
a style
a reference architecture
an architectural standard
20
Software Architecture: Foundations, Theory, and Practice
Architectural Analysis Goals –
Correctness
 Ensures that
1. the architectural model fully realizes a system
specification
2. the system’s implementation fully realizes the
architecture
 Inclusion of OTS elements impacts correctness – what
proposition is not respected?
21
Software Architecture: Foundations, Theory, and Practice
Architectural Analysis Goals?
 The four “C”s – TEST
C _ _ _ _ _ _ _ _ _ _ _
C _ _ _ _ _ _ _ _ _ _
C _ _ _ _ _ _ _ _ _ _ _ _
C _ _ _ _ _ _ _ _ _ _
22
Software Architecture: Foundations, Theory, and Practice
Scope of Architectural Analysis
 Component- and connector-level
 Subsystem- and system-level
 Data exchanged in a system or subsystem
Data structure
Data flow
Properties of data exchange
 Architectures at different abstraction levels
 Comparison of two or more architectures
Processing
Data
Interaction
Configuration
Non-functional properties
23
Software Architecture: Foundations, Theory, and Practice
Data Exchange Example
24
Software Architecture: Foundations, Theory, and Practice; Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy; © 2008 John Wiley & Sons, Inc. Reprinted with permission.
Open question: How would you fix this?
Software Architecture: Foundations, Theory, and Practice
Scope of Architectural Analysis
 Component- and connector-level
 Subsystem- and system-level
 Data exchanged in a system or subsystem
Data structure
Data flow
Properties of data exchange
 Architectures at different abstraction levels
 Comparison of two or more architectures
25
Software Architecture: Foundations, Theory, and Practice
Architectural Concern Being
Analyzed
 Structural characteristics
 Behavioral characteristics
 Interaction characteristics
 Non-functional characteristics
 Food for thought: does this classification add any value?
26
Software Architecture: Foundations, Theory, and Practice
Level of Formality
 Informal models
 Semi-formal models
 Formal models
27
Software Architecture: Foundations, Theory, and Practice
Informal Architectural Models
and Analysis
 Helps architects get
clarification from
system customers
 Helps managers
ensure project
scope
 Not as useful to
developers
28
Software Architecture: Foundations, Theory, and Practice; Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy; © 2008 John Wiley & Sons, Inc. Reprinted with permission.
Software Architecture: Foundations, Theory, and Practice
Formal Architectural Models and
Analysis
 Helps architects
determine
component
composability
 Helps developers
with
implementation-
level decisions
 Helps with locating
and selecting
appropriate OTS
components
 Helps with
automated code
generation.
 Not as useful for
discussions with
non-technical
stakeholders
29
Software Architecture: Foundations, Theory, and Practice; Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy; © 2008 John Wiley & Sons, Inc. Reprinted with permission.
Component UserInterface
Port getValues
Port calculate
Computation
Connector Call
Role Caller =
Role Callee =
Glue =
Configuration LunarLander
Instances
DS : DataStore
C : Calculation
UI : UserInterface
CtoUIgetValues, CtoUIstoreValues, UItoC, UItoDS : Call
Attachments
C.getValues as CtoUIgetValues.Caller
DS.getValues as CtoUIgetValues.Callee
C.storeValues as CtoUIstoreValues.Caller
DS.storeValues as CtoUIstoreValues.Callee
UI.calculate as UItoC.Caller
C.calulate as UItoC.Callee
UI.getValues as UItoDS.Caller
DS.getValues as UItoDS.Callee
End LunarLander.
Software Architecture: Foundations, Theory, and Practice
Type of Analysis
 Static analysis (e.g. compilers)
 Dynamic analysis (executing the model)
 Scenario-driven analysis
Can be both static and dynamic
30
Software Architecture: Foundations, Theory, and Practice
Level of Automation
 Manual
 Partially automated
 Fully automated
31
Software Architecture: Foundations, Theory, and Practice
Analysis Stakeholders – different
views
32
Stakeholder Goal Scope Formality
Architect All All All
Developer Cnst, comp C&C, subsystem Semi, formal
Manager Cmplt, corr, comp ??? Informal
Customer Cmplt, corr ??? Informal
Vendor comp C&C Semi
Abbr Name
Cnst Consistency
Comp Compatibility
Cmplt Completeness
Corr Correctness
Software Architecture: Foundations, Theory, and Practice
Project Management triangle
 Where is the economical
analysis?
 See Chapter 23 from
Software Architecture in
Practice (3rd Edition)
 Cost Benefit Analysis
Method – method with 9
activities
33
Software Architecture: Foundations, Theory, and Practice
Take home! – summary slide
 Analysis means:
Setting a goal (what do we want to analyze?)
Defining the scope (what area are we focusing on?)
Defining the concern – not sure about this one
Establishing the formality level
(optional) Analysis type/automation?(how will the
analysis be done?)
 Don’t forget about the economical analysis of
architecture!
34

Weitere ähnliche Inhalte

Was ist angesagt?

Real Time Software Design in Software Engineering SE13
Real Time Software Design in Software Engineering SE13Real Time Software Design in Software Engineering SE13
Real Time Software Design in Software Engineering SE13koolkampus
 
The Object Model
The Object Model  The Object Model
The Object Model yndaravind
 
Advanced Structural Modeling
Advanced Structural ModelingAdvanced Structural Modeling
Advanced Structural ModelingAMITJain879
 
Architectural styles and patterns
Architectural styles and patternsArchitectural styles and patterns
Architectural styles and patternsHimanshu
 
Design Pattern in Software Engineering
Design Pattern in Software EngineeringDesign Pattern in Software Engineering
Design Pattern in Software EngineeringManish Kumar
 
Design process and concepts
Design process and conceptsDesign process and concepts
Design process and conceptsSlideshare
 
Structured analysis and structured design
Structured analysis  and structured designStructured analysis  and structured design
Structured analysis and structured designSudeep Singh
 
Unit 1( modelling concepts & class modeling)
Unit  1( modelling concepts & class modeling)Unit  1( modelling concepts & class modeling)
Unit 1( modelling concepts & class modeling)Manoj Reddy
 
Dbms lab manual
Dbms lab manualDbms lab manual
Dbms lab manualArthyR3
 
Model-Driven Software Engineering in Practice - Chapter 4 - Model-Driven Arch...
Model-Driven Software Engineering in Practice - Chapter 4 - Model-Driven Arch...Model-Driven Software Engineering in Practice - Chapter 4 - Model-Driven Arch...
Model-Driven Software Engineering in Practice - Chapter 4 - Model-Driven Arch...Jordi Cabot
 

Was ist angesagt? (20)

Real Time Software Design in Software Engineering SE13
Real Time Software Design in Software Engineering SE13Real Time Software Design in Software Engineering SE13
Real Time Software Design in Software Engineering SE13
 
System Engineering Unit 2
System Engineering Unit 2System Engineering Unit 2
System Engineering Unit 2
 
Processes and threads
Processes and threadsProcesses and threads
Processes and threads
 
The Object Model
The Object Model  The Object Model
The Object Model
 
Advanced Structural Modeling
Advanced Structural ModelingAdvanced Structural Modeling
Advanced Structural Modeling
 
Architectural styles and patterns
Architectural styles and patternsArchitectural styles and patterns
Architectural styles and patterns
 
Design Pattern in Software Engineering
Design Pattern in Software EngineeringDesign Pattern in Software Engineering
Design Pattern in Software Engineering
 
Object Oriented Design
Object Oriented DesignObject Oriented Design
Object Oriented Design
 
Design process and concepts
Design process and conceptsDesign process and concepts
Design process and concepts
 
Software Engineering by Pankaj Jalote
Software Engineering by Pankaj JaloteSoftware Engineering by Pankaj Jalote
Software Engineering by Pankaj Jalote
 
Structured analysis and structured design
Structured analysis  and structured designStructured analysis  and structured design
Structured analysis and structured design
 
Unit 1( modelling concepts & class modeling)
Unit  1( modelling concepts & class modeling)Unit  1( modelling concepts & class modeling)
Unit 1( modelling concepts & class modeling)
 
Ch 11-component-level-design
Ch 11-component-level-designCh 11-component-level-design
Ch 11-component-level-design
 
CS8592-OOAD Lecture Notes Unit-1
CS8592-OOAD Lecture Notes Unit-1CS8592-OOAD Lecture Notes Unit-1
CS8592-OOAD Lecture Notes Unit-1
 
Dbms lab manual
Dbms lab manualDbms lab manual
Dbms lab manual
 
software architecture
software architecturesoftware architecture
software architecture
 
Model-Driven Software Engineering in Practice - Chapter 4 - Model-Driven Arch...
Model-Driven Software Engineering in Practice - Chapter 4 - Model-Driven Arch...Model-Driven Software Engineering in Practice - Chapter 4 - Model-Driven Arch...
Model-Driven Software Engineering in Practice - Chapter 4 - Model-Driven Arch...
 
Requirement Engineering
Requirement EngineeringRequirement Engineering
Requirement Engineering
 
Software Evolution
Software EvolutionSoftware Evolution
Software Evolution
 
Unified process Model
Unified process ModelUnified process Model
Unified process Model
 

Ähnlich wie Analysis of software architectures

13 analysis of_software_architectures
13 analysis of_software_architectures13 analysis of_software_architectures
13 analysis of_software_architecturesMajong DevJfu
 
Cs 1023 lec 7 architecture (week 1)
Cs 1023 lec 7 architecture (week 1)Cs 1023 lec 7 architecture (week 1)
Cs 1023 lec 7 architecture (week 1)stanbridge
 
Cs 1023 lec 1 big idea (week 1)
Cs 1023 lec 1   big idea (week 1)Cs 1023 lec 1   big idea (week 1)
Cs 1023 lec 1 big idea (week 1)stanbridge
 
Cs 1023 lec 1 big idea (week 1)
Cs 1023 lec 1   big idea (week 1)Cs 1023 lec 1   big idea (week 1)
Cs 1023 lec 1 big idea (week 1)stanbridge
 
Lecture-1-Introduction.pdf
Lecture-1-Introduction.pdfLecture-1-Introduction.pdf
Lecture-1-Introduction.pdfAkilaGamage2
 
Cs 1023 lec 6 architecture (week 1)
Cs 1023 lec 6 architecture (week 1)Cs 1023 lec 6 architecture (week 1)
Cs 1023 lec 6 architecture (week 1)stanbridge
 
Cs 1023 lec 4 (week 1)
Cs 1023 lec 4 (week 1)Cs 1023 lec 4 (week 1)
Cs 1023 lec 4 (week 1)stanbridge
 
02_Architectures_In_Context.ppt
02_Architectures_In_Context.ppt02_Architectures_In_Context.ppt
02_Architectures_In_Context.pptRohanBorgalli
 
Cs 1023 lec 3 architecture (week 1)
Cs 1023 lec 3 architecture (week 1)Cs 1023 lec 3 architecture (week 1)
Cs 1023 lec 3 architecture (week 1)stanbridge
 
Cs 1023 lec 3 architecture (week 1)
Cs 1023 lec 3 architecture (week 1)Cs 1023 lec 3 architecture (week 1)
Cs 1023 lec 3 architecture (week 1)stanbridge
 
07 software connectors (2)
07 software connectors (2)07 software connectors (2)
07 software connectors (2)Jaya Chavan
 
02 architectures in_context
02 architectures in_context02 architectures in_context
02 architectures in_contextMajong DevJfu
 
Lecture-2-Architectural_Concepts.pdf
Lecture-2-Architectural_Concepts.pdfLecture-2-Architectural_Concepts.pdf
Lecture-2-Architectural_Concepts.pdfAkilaGamage2
 
04 designing architectures
04 designing architectures04 designing architectures
04 designing architecturesMajong DevJfu
 
14 analysis techniques
14 analysis techniques14 analysis techniques
14 analysis techniquesMajong DevJfu
 
09 introduction to_modeling
09 introduction to_modeling09 introduction to_modeling
09 introduction to_modelingMajong DevJfu
 
Needs challenges and_opportunites_in_architectural_languages (bolzano_dec2013)
Needs challenges and_opportunites_in_architectural_languages (bolzano_dec2013)Needs challenges and_opportunites_in_architectural_languages (bolzano_dec2013)
Needs challenges and_opportunites_in_architectural_languages (bolzano_dec2013)Henry Muccini
 

Ähnlich wie Analysis of software architectures (20)

13 analysis of_software_architectures
13 analysis of_software_architectures13 analysis of_software_architectures
13 analysis of_software_architectures
 
Cs 1023 lec 7 architecture (week 1)
Cs 1023 lec 7 architecture (week 1)Cs 1023 lec 7 architecture (week 1)
Cs 1023 lec 7 architecture (week 1)
 
Cs 1023 lec 1 big idea (week 1)
Cs 1023 lec 1   big idea (week 1)Cs 1023 lec 1   big idea (week 1)
Cs 1023 lec 1 big idea (week 1)
 
Cs 1023 lec 1 big idea (week 1)
Cs 1023 lec 1   big idea (week 1)Cs 1023 lec 1   big idea (week 1)
Cs 1023 lec 1 big idea (week 1)
 
lecture7.ppt
lecture7.pptlecture7.ppt
lecture7.ppt
 
lecture7.ppt
lecture7.pptlecture7.ppt
lecture7.ppt
 
Lecture-1-Introduction.pdf
Lecture-1-Introduction.pdfLecture-1-Introduction.pdf
Lecture-1-Introduction.pdf
 
Cs 1023 lec 6 architecture (week 1)
Cs 1023 lec 6 architecture (week 1)Cs 1023 lec 6 architecture (week 1)
Cs 1023 lec 6 architecture (week 1)
 
Cs 1023 lec 4 (week 1)
Cs 1023 lec 4 (week 1)Cs 1023 lec 4 (week 1)
Cs 1023 lec 4 (week 1)
 
02_Architectures_In_Context.ppt
02_Architectures_In_Context.ppt02_Architectures_In_Context.ppt
02_Architectures_In_Context.ppt
 
Cs 1023 lec 3 architecture (week 1)
Cs 1023 lec 3 architecture (week 1)Cs 1023 lec 3 architecture (week 1)
Cs 1023 lec 3 architecture (week 1)
 
Cs 1023 lec 3 architecture (week 1)
Cs 1023 lec 3 architecture (week 1)Cs 1023 lec 3 architecture (week 1)
Cs 1023 lec 3 architecture (week 1)
 
07 software connectors (2)
07 software connectors (2)07 software connectors (2)
07 software connectors (2)
 
02 architectures in_context
02 architectures in_context02 architectures in_context
02 architectures in_context
 
Lecture-2-Architectural_Concepts.pdf
Lecture-2-Architectural_Concepts.pdfLecture-2-Architectural_Concepts.pdf
Lecture-2-Architectural_Concepts.pdf
 
04 designing architectures
04 designing architectures04 designing architectures
04 designing architectures
 
14 analysis techniques
14 analysis techniques14 analysis techniques
14 analysis techniques
 
09 introduction to_modeling
09 introduction to_modeling09 introduction to_modeling
09 introduction to_modeling
 
03 basic concepts
03 basic concepts03 basic concepts
03 basic concepts
 
Needs challenges and_opportunites_in_architectural_languages (bolzano_dec2013)
Needs challenges and_opportunites_in_architectural_languages (bolzano_dec2013)Needs challenges and_opportunites_in_architectural_languages (bolzano_dec2013)
Needs challenges and_opportunites_in_architectural_languages (bolzano_dec2013)
 

Kürzlich hochgeladen

From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 

Kürzlich hochgeladen (20)

From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 

Analysis of software architectures

  • 1. Software Architecture: Foundations, Theory, and Practice Copyright © Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy. All rights reserved. Analysis of Software Architectures Software Architecture Horia Constantin & original authors
  • 2. Software Architecture: Foundations, Theory, and Practice 2 Software Architecture: Foundations, Theory, and Practice; Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy; © 2008 John Wiley & Sons, Inc. Reprinted with permission.  Objective: Not needing to read that chapter of the book unless you have a really specific question.  Assumption: minimal participation from you  Tip for not getting bored: ASK QUESTIONS whenever something is unclear.
  • 3. Software Architecture: Foundations, Theory, and Practice Architectural Analysis in a Nutshell 3 Software Architecture: Foundations, Theory, and Practice; Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy; © 2008 John Wiley & Sons, Inc. Reprinted with permission.
  • 4. Software Architecture: Foundations, Theory, and Practice 4
  • 5. Software Architecture: Foundations, Theory, and Practice What Is Architectural Analysis?  Architectural analysis is the activity of discovering important system properties using the system’s architectural models.  Important to know 1. which questions to ask 2. why to ask them 3. how to ask them 4. how to ensure that they can be answered 5
  • 6. Software Architecture: Foundations, Theory, and Practice Take home! – summary slide  Analysis means: Setting a goal (what do we want to analyze?) Defining the scope (what area are we focusing on?) Defining the concern – not sure about this one Establishing the formality level (optional) Analysis type/automation?(how will the analysis be done?)  Don’t forget about the economical analysis of architecture! 6
  • 7. Software Architecture: Foundations, Theory, and Practice What is the purpose of analysis?  Early (before development), useful answers about relevant architectural aspects  discover components to be grabbed off the shelf.  Just having the architecture is not enough… 7
  • 8. Software Architecture: Foundations, Theory, and Practice 8
  • 9. Software Architecture: Foundations, Theory, and Practice Architectural Analysis Goals  The four “C”s Completeness Consistency Compatibility Correctness 9
  • 10. Software Architecture: Foundations, Theory, and Practice Architectural Analysis Goals – Completeness  Does the architecture capture all of a system's key functional and non-functional requirements?  Have all elements been fully modeled in the notation?  Have all design decisions been properly captured? 10 Client Client Client Server Incomplete! Client Client Server Complete Client Server
  • 11. Software Architecture: Foundations, Theory, and Practice Architectural Analysis Goals – Consistency  Ensures that different model elements do not contradict one another  Dimensions of architectural consistency Name Interface Behavior Interaction Refinement 11
  • 12. Software Architecture: Foundations, Theory, and Practice Consistency fun test incoming 12
  • 13. Software Architecture: Foundations, Theory, and Practice Name Consistency  Component and connector names  Component service names  May be non-trivial to establish at the architectural level Multiple system elements/services with identical names Loose coupling via publish-subscribe or asynchronous event broadcast Dynamically adaptable architectures 13
  • 14. Software Architecture: Foundations, Theory, and Practice Interface Consistency  Encompasses name consistency  Also involves parameter lists in component services  A rich spectrum of choices at the architectural level  Example: matching provided and required interfaces ReqInt: getSubQ(Natural first, Natural last, Boolean remove) returns FIFOQueue; ProvInt1: getSubQ(Index first, Index last) returns FIFOQueue; ProvInt2: getSubQ(Natural first, Natural last, Boolean remove) returns Queue; 14
  • 15. Software Architecture: Foundations, Theory, and Practice Behavioral Consistency  Names and interfaces of interacting components may match, but behaviors need not  Example: subtraction subtract(Integer x, Integer y) returns Integer; Can we be sure what the subtract operation does? 15
  • 16. Software Architecture: Foundations, Theory, and Practice Interaction Consistency 16  Names, interfaces, and behaviors of interacting components may match, yet they may still be unable to interact properly Software Architecture: Foundations, Theory, and Practice; Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy; © 2008 John Wiley & Sons, Inc. Reprinted with permission.
  • 17. Software Architecture: Foundations, Theory, and Practice Refinement Consistency  Architectural models are refined during the design process  A relationship must be maintained between higher and lower level models All elements are preserved in the lower level model All design decisions are preserved in the lower-level model No new design decisions violate existing design decisions 17
  • 18. Software Architecture: Foundations, Theory, and Practice Refinement Consistency Example 18 Software Architecture: Foundations, Theory, and Practice; Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy; © 2008 John Wiley & Sons, Inc. Reprinted with permission.
  • 19. Software Architecture: Foundations, Theory, and Practice Consistency test? 19 A. Dequeue function in one interface only polls the queue and the other one also removes the element B. Interface present in Product Architecture is missing in the zoomed-in module architecture C. Invoke an operation after a close event or before a component has been initialized D. Included in another type E. Client: getSubQ(Natural first, Natural last, Boolean remove) Server: getSubQ(Index first, Index last) 1. Name 2. Interface 3. Behavior 4. Interaction 5. Refinement
  • 20. Software Architecture: Foundations, Theory, and Practice Architectural Analysis Goals – Compatibility  Ensures that the architectural model adheres to guidelines and constraints of a style a reference architecture an architectural standard 20
  • 21. Software Architecture: Foundations, Theory, and Practice Architectural Analysis Goals – Correctness  Ensures that 1. the architectural model fully realizes a system specification 2. the system’s implementation fully realizes the architecture  Inclusion of OTS elements impacts correctness – what proposition is not respected? 21
  • 22. Software Architecture: Foundations, Theory, and Practice Architectural Analysis Goals?  The four “C”s – TEST C _ _ _ _ _ _ _ _ _ _ _ C _ _ _ _ _ _ _ _ _ _ C _ _ _ _ _ _ _ _ _ _ _ _ C _ _ _ _ _ _ _ _ _ _ 22
  • 23. Software Architecture: Foundations, Theory, and Practice Scope of Architectural Analysis  Component- and connector-level  Subsystem- and system-level  Data exchanged in a system or subsystem Data structure Data flow Properties of data exchange  Architectures at different abstraction levels  Comparison of two or more architectures Processing Data Interaction Configuration Non-functional properties 23
  • 24. Software Architecture: Foundations, Theory, and Practice Data Exchange Example 24 Software Architecture: Foundations, Theory, and Practice; Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy; © 2008 John Wiley & Sons, Inc. Reprinted with permission. Open question: How would you fix this?
  • 25. Software Architecture: Foundations, Theory, and Practice Scope of Architectural Analysis  Component- and connector-level  Subsystem- and system-level  Data exchanged in a system or subsystem Data structure Data flow Properties of data exchange  Architectures at different abstraction levels  Comparison of two or more architectures 25
  • 26. Software Architecture: Foundations, Theory, and Practice Architectural Concern Being Analyzed  Structural characteristics  Behavioral characteristics  Interaction characteristics  Non-functional characteristics  Food for thought: does this classification add any value? 26
  • 27. Software Architecture: Foundations, Theory, and Practice Level of Formality  Informal models  Semi-formal models  Formal models 27
  • 28. Software Architecture: Foundations, Theory, and Practice Informal Architectural Models and Analysis  Helps architects get clarification from system customers  Helps managers ensure project scope  Not as useful to developers 28 Software Architecture: Foundations, Theory, and Practice; Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy; © 2008 John Wiley & Sons, Inc. Reprinted with permission.
  • 29. Software Architecture: Foundations, Theory, and Practice Formal Architectural Models and Analysis  Helps architects determine component composability  Helps developers with implementation- level decisions  Helps with locating and selecting appropriate OTS components  Helps with automated code generation.  Not as useful for discussions with non-technical stakeholders 29 Software Architecture: Foundations, Theory, and Practice; Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy; © 2008 John Wiley & Sons, Inc. Reprinted with permission. Component UserInterface Port getValues Port calculate Computation Connector Call Role Caller = Role Callee = Glue = Configuration LunarLander Instances DS : DataStore C : Calculation UI : UserInterface CtoUIgetValues, CtoUIstoreValues, UItoC, UItoDS : Call Attachments C.getValues as CtoUIgetValues.Caller DS.getValues as CtoUIgetValues.Callee C.storeValues as CtoUIstoreValues.Caller DS.storeValues as CtoUIstoreValues.Callee UI.calculate as UItoC.Caller C.calulate as UItoC.Callee UI.getValues as UItoDS.Caller DS.getValues as UItoDS.Callee End LunarLander.
  • 30. Software Architecture: Foundations, Theory, and Practice Type of Analysis  Static analysis (e.g. compilers)  Dynamic analysis (executing the model)  Scenario-driven analysis Can be both static and dynamic 30
  • 31. Software Architecture: Foundations, Theory, and Practice Level of Automation  Manual  Partially automated  Fully automated 31
  • 32. Software Architecture: Foundations, Theory, and Practice Analysis Stakeholders – different views 32 Stakeholder Goal Scope Formality Architect All All All Developer Cnst, comp C&C, subsystem Semi, formal Manager Cmplt, corr, comp ??? Informal Customer Cmplt, corr ??? Informal Vendor comp C&C Semi Abbr Name Cnst Consistency Comp Compatibility Cmplt Completeness Corr Correctness
  • 33. Software Architecture: Foundations, Theory, and Practice Project Management triangle  Where is the economical analysis?  See Chapter 23 from Software Architecture in Practice (3rd Edition)  Cost Benefit Analysis Method – method with 9 activities 33
  • 34. Software Architecture: Foundations, Theory, and Practice Take home! – summary slide  Analysis means: Setting a goal (what do we want to analyze?) Defining the scope (what area are we focusing on?) Defining the concern – not sure about this one Establishing the formality level (optional) Analysis type/automation?(how will the analysis be done?)  Don’t forget about the economical analysis of architecture! 34

Hinweis der Redaktion

  1. I read the chapter twice and the whole book once.
  2. As you will listen to me going through the concepts I’m sure that you will see the analysis is not something really complex. Arthur Dent : “I think we have different value systems.” Ford Prefect : “Well mine’s better.” — Douglas Adams, Mostly Harmless
  3. 4c c&c, system level, data or arch vs arch? Analysis type – static/dynamic, use case.
  4. can help identify inappropriate or incorrect design decisions after you’ve created it, it will change and for that, you need to think about it, to analyze it and see how the new requirements fit the old arch. Analysis is usually a default action when you have an architecture.
  5. The image that I’ve always missed from the book… the real reason for which we have software architecture. Always during this presentation keep in mind that we are talking about big software products… if you are a startup you definitely don’t need a formal architecture. If you are designing lunar lander, it is definitely not
  6. There is a difference between internal and external… internal is easier and can be automated.
  7. Could happen even if no architectural design decisions are invalidated
  8. Think of a getTime function that is expected to return the current hour and minute, but actually returns the time since the system has been started.
  9. a component's provided operations are accessed in a manner that violates certain interaction constraints They happen when the the component's interaction protocol (state-transition diagrams) is not respected.
  10. Details can be lost when zooming in or out.
  11. Both high and low level elements are incomplete. And once it is a connector, and once a component. But it’s not visible in the picture.
  12.   The difficulty of this part depends on the formality by which the guidelines and constraints are specified. If formal it’s easy. This could fail for a ots product that is integrated to an existing architecture.
  13. The architecture takes into account all specifications. The implementation fully realizes the architecture and nothing more. Second proposition is not respected. System may include structural elements, functionality, and non-functional properties that are not part of the architecture
  14. Completeness Consistency Compatibility Correctness
  15. Scope – what will the analysis focus on? Comp & connector - a full analysis of the interfaces as well as its connection to the next element Subsystem- and system-level composition of components at system or subsystem level. How there components interact with each other (What sometimes happens is that you have a component with some characteristics that are good, but you integrate it with another with also good characteristics, but the 2 are incompatible and cancel each others advantages.) caching component vs real time data component Data exchanged in a system or subsystem such as typed versus untyped or discrete versus streamed point-to-point versus broadcast, and any other problems that might appear from this exchange. consistency, security, and latency.
  16. Flow of data and properties of data exchange
  17. Architectures at different abstraction levels - refinement inconsistencies. Comparison of two or more architectures – ensuring the COMPATIBILITY of a given system's architecture with a reference architecture/style/pattern encompasses all the previous scopes.
  18. A really short slide… Answers the what are we studying from the architecture question… What it does: architecture is well formed?; adherence to architectural constraints, patterns, and styles; system concurrency and distribution; connectivity, composition internal behaviours of individual components + the composite behaviour of all to make the desired system behaviour Interaction Characteristics - the numbers and types of distinct software connectors, and their values for different connector dimensions; establish whether the architecture will actually be able to fulfill some of its requirements. Non-Functional Characteristics - cut across multiple components and connectors, which makes them particularly difficult to assess.  architectural analysis techniques focusing on these characteristics are scarce.
  19. What the system's stakeholders want to be able to analyze will influence what software architects capture in their architectural models. Informal Models - boxes-and-lines diagrams support informal and manual analyses by various stakeholders, but they can be ambiguous and lack detail. Semiformal Models - most models used in practice; think of uml that is not 100% precise, but is a lot more precise that native language. Analysis can be manual or partially automated. Formal Models - formally defined syntax, formally defined semantics; automated analysis only for technical stakeholders; in practice they have scalability problems because they are hard to create.
  20. Go for the easy one... just thinking about it for a while can make problems emerge and you can fix them in the planning stage, when the cost is minimum. (native language or even visio diagrams)
  21. (semantics and syntactic rules). Remember that automated code generation still requires that templates are made by the developers.
  22. Static Analysis - inferring the properties of a software system from one or more of its models, without actually executing those models; model adheres to the syntactic rules of the modeling notation. Good for all models. Dynamic Analysis - executing or simulating the execution of a model of the software system; the system semantics should be executable. Scenario-Based Analysis - For large and complex software systems, specific-use cases are identified that represent the most important or most frequently occurring system usage scenarios, and the analysis is focused on those
  23. In general, an architectural model provided in a more formal notation will be more amenable to automated analysis than a model provided in a more informal notation Manual - requires significant human involvement, expensive; many non-functional properties, which are critical to the success of most all software systems, are understood at the level of intuition, anecdote, and informal guideline; requires a detailed process that must be followed by the system architects and other stakeholders participating in the analysis. Partially Automated - Most architecture modeling notations presented in Chapter 6 are amenable to ensuring a given architectural description's syntactic correctness, as well as different degrees of semantic correctness Fully Automated - in practice, fully automated architectural analysis techniques must be combined with other techniques, which themselves may need human intervention, in order to get more comprehensive answers.
  24. You have heard a lot about arch analysis. Listen to what you should be taking home. 4c c&c, system level, data or arch vs arch? Analysis type – static/dynamic, use case.