CS223: Software Engineering Lecture 14: Architectural Patterns.

Slides:



Advertisements
Similar presentations
Chapter 13 Review Questions
Advertisements

Lecturer: Sebastian Coope Ashton Building, Room G.18 COMP 201 web-page: Lecture.
Chapter 6 – Architectural Design Lecture 1 1Chapter 6 Architectural design.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 11 Slide 1 Architectural Design.
SWE Introduction to Software Engineering
Establishing the overall structure of a software system
SWE Introduction to Software Engineering
Course Instructor: Aisha Azeem
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 11 Slide 1 Architectural Design.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 11 Slide 1 Architectural Design.
Chapter 6 – Architectural Design
Chapter 6 – Architectural Design Lecture 2 1Chapter 6 Architectural design.
Chapter 7: Architecture Design Omar Meqdadi SE 273 Lecture 7 Department of Computer Science and Software Engineering University of Wisconsin-Platteville.
Architectural Design.
©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 10Slide 1 Chapter 10 Architectural Design.
Figure – Chapter 6. Figure 6.1 The architecture of a packing robot control system.
Chapter 6 – Architectural Design Edited by Dr. Issam Al-Azzoni Software Engineering - Sommerville 1Chapter 6 Architectural design.
Chapter 6 – Architectural Design Lecture 1 1Chapter 6 Architectural design.
Architectural Design To explain the advantages and disadvantages of different distributed systems architectures To discuss client-server and distributed.
©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 10Slide 1 Architectural Design l Establishing the overall structure of a software system.
Architectural Design lecture 10. Topics covered Architectural design decisions System organisation Control styles Reference architectures.
Chapter 6 – Architectural Design CSE-411, Dr. Shamim H Ripon.
©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 10Slide 1 Architectural Design l Establishing the overall structure of a software system.
Architectural Design 10/24/2015ICS 413 – Software Engineering1.
Architectural Design Yonsei University 2 nd Semester, 2014 Sanghyun Park.
CSc 461/561 Software Engineering Lecture 7 – Architectural Design.
Chapter 6 Architectural Design.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 11 Slide 1 Architectural Design.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 11 Slide 1 Architectural Design.
CS.436 Software Engineering By Ajarn..Sutapart Sappajak,METC,MSIT Chapter 8 Architectural Design Slide 1 1 Chapter 8 Architectural Design.
Lecture 1 Chapter 6 Architectural design1. Topics covered Architectural design decisions Architectural views Architectural patterns Application architectures.
Chapter 6 – Architectural Design 1Chapter 6 Architectural design.
Chapter 6 – Architectural Design 1Chapter 6 Architectural design CS 425 October 29, 2013 Ian Sommerville, Software Engineering, 9 th Edition Pearson Education,
Chapter 6 – Architectural Design Lecture 1 1Chapter 6 Architectural design.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 11 Slide 1 Architectural Design.
Chapter 6 – Architectural Design Lecture 1 1Chapter 6 Architectural design.
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 11 Slide 1 Architectural Design.
Chapter 7: Architectural Design Chapter 11 in textbook 1.
CSC480 Software Engineering Lecture 10 September 25, 2002.
Chapter 6 – Architectural Design Chapter 6 Architectural Design1 CS 425 October 29, 2015 Note: These are a slightly modified version of Chapter 6 slides.
©Ian Sommerville, Robin Abraham 2004CS 361, Summer 2004 Slide 1 Architectural Design.
Chapter 6 Architectural design Chapter 6 – Architectural Design Lecture 1 1.
SE Fundamentals 4 – Architectural Design 1Chapter 6 Architectural design CS 791Z February 19, 2013 Ian Sommerville, Software Engineering, 9 th Edition.
Software Architectural Design 1. Topics covered  Architectural design decisions  Architectural views  Architectural patterns  Application architectures.
Slide 1 Chapter 8 Architectural Design. Slide 2 Topics covered l System structuring l Control models l Modular decomposition l Domain-specific architectures.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 11 Slide 1 Architectural Design.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 11 Slide 1 Architectural Design.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 11 Slide 1 Architectural Design.
BZUPAGES.COMSoftware Engineering, 7th edition. Chapter 11 Slide 1 Architectural Design.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 11 Slide 1 Architectural Design.
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 11 Slide 1 Architectural Design.
©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 10Slide 1 Chapter 5:Architectural Design l Establishing the overall structure of a software.
Chapter 6 – Architectural Design 1Chapter 6 Architectural design CS 425 October 20, 2011 Ian Sommerville, Software Engineering, 9 th Edition Pearson Education,
Architecture Brief Pepper
CompSci 280 S Introduction to Software Development
Chapter 6 – Architectural Design
IS301 – Software Engineering Dept of Computer Information Systems
Software Engineering Architectural Design Chapter 6 Dr.Doaa Sami
Chapter 6 – Architectural Design
Software Engineering Architectural Design Chapter 6 Dr.Doaa Samy
Chapter 6 – Architectural Design
Chapter 6 – Architectural Design
Chapter 6 – Architectural Design
Chapter 5 Architectural Design.
Chapter 6 – Architectural Design
CS385 T&D Software Engineering Dr.Doaa Sami Khafaga
Chapter 5 Architectural Design.
Chapter 6 – Architectural Design
Chapter 6 – Architectural Design
Presentation transcript:

CS223: Software Engineering Lecture 14: Architectural Patterns

Recap Software architecture Use of software architecture Different views of software architecture Example of client server model

Objective After completing this lecture the students will be able to Specific examples of software architecture o MVC o Layered o Repository o Client-server o Pipe-and-filter Case study

Software architecture Architectural design o Identifying the sub-systems making up a system o The framework for sub-system control and communication The output of this design process o A description of the software architecture.

Architectural design Represents the link between specification and design processes. Often carried out in parallel with some specification activities. It involves identifying major system components and their communications.

The architecture of a packing robot control system Vision System Object Identification System Arm Controller Gripper Controller Packaging selection system Packing system Conveyor controller

Architectural abstraction Architecture in the small o architecture of individual programs. o how an individual program is decomposed into components. Architecture in the large o architecture of complex enterprise systems  include other systems, programs, and program components. o These systems are distributed over different computers  may be owned and managed by different companies.

Architectural design decisions Is there a generic application architecture that can be used? How will the system be distributed? What architectural styles are appropriate? What approach will be used to structure the system? How will the system be decomposed into modules? What control strategy should be used? How will the architectural design be evaluated? How should the architecture be documented?

Architecture and system characteristics Performance o Localize critical operations and minimize communications. Use large rather than fine-grain components. Security o Use a layered architecture with critical assets in the inner layers. Safety o Localize safety-critical features in a small number of sub-systems. Availability o Include redundant components and mechanisms for fault tolerance. Maintainability o Use fine-grain, replaceable components.

Architectural patterns Patterns are a means of representing, sharing and reusing knowledge. An architectural pattern is a stylized description of good design practice o Tried and tested in different environments. Patterns should include information about when they are and when the are not useful. Patterns may be represented using tabular and graphical descriptions.

Model-View-Controller (MVC) NameMVC (Model-View-Controller) Description Separates presentation and interaction from the system data. The system is structured into three logical components The Model component manages the system data and associated operations on that data. The View component defines and manages how the data is presented to the user. The Controller component manages user interaction When used There are multiple ways to view and interact with data. The future requirements for interaction and presentation of data are unknown. Advantages Allows the data to change independently of its representation. Supports presentation of the same data in different ways Disadvantages Can involve additional code and code complexity when the data model and interactions are simple.

The organization of the Model-View- Controller

Web application architecture using the MVC pattern

Layered architecture Used to model the interfacing of sub-systems. Organises the system into a set of layers (or abstract machines) o Each of which provide a set of services. Supports the incremental development of sub-systems in different layers. When a layer interface changes, only the adjacent layer is affected. Often artificial to structure systems in this way.

The Layered architecture pattern NameLayered architecture DescriptionOrganizes the system into layers with related functionality associated with each layer. A layer provides services to the layer above it When usedBuilding new facilities on top of existing systems; The development is spread across several teams There is a requirement for multi-level security. AdvantagesAllows replacement of entire layers so long as the interface is maintained. Redundant facilities can be provided in each layer to increase the dependability of the system. DisadvantagesProviding a clean separation between layers is often difficult and a high-level layer may have to interact directly with lower-level layers rather than through the layer immediately below it.

A generic layered architecture User Interface User interface management (Authentication and authorization) Business logic/ application utilities System support (OS, database, etc.)

The architecture of the LIBSYS system

Repository architecture Sub-systems must exchange data. This may be done in two ways: o Shared data is held in a central database or repository and may be accessed by all sub-systems; o Each sub-system maintains its own database and passes data explicitly to other sub-systems. When large amounts of data are to be shared, o The repository model of sharing is most commonly used o This is an efficient data sharing mechanism.

The Repository pattern NameRepository DescriptionAll data in a system is managed in a central repository Accessible to all system components. Components interact only through the repository. When usedLarge volumes of information are generated that has to be stored for a long time. The inclusion of data in the repository triggers an action or tool. AdvantagesComponents can be independent Changes made by one component can be propagated to all components. All data can be managed consistently (e.g., backups done at the same time) as it is all in one place. DisadvantagesThe repository is a single point of failure so problems in the repository affect the whole system. Distributing the repository across several computers may be difficult.

A repository architecture for an IDE

Thank you Next Lecture: Software Architecture