Software Architecture

Slides:



Advertisements
Similar presentations
Distributed Systems Architectures
Advertisements

©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 9 Distributed Systems Architectures Slide 1 1 Chapter 9 Distributed Systems Architectures.
Lecturer: Sebastian Coope Ashton Building, Room G.18 COMP 201 web-page: Lecture.
Distributed Systems Architectures
Lecturer: Sebastian Coope Ashton Building, Room G.18 COMP 201 web-page: Lecture.
Technical Architectures
Distributed Systems Architectures
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 12 Slide 1 Distributed Systems Architectures.
Ch 12 Distributed Systems Architectures
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 12 Slide 1 Distributed Systems Architectures.
Systems Architecture, Fourth Edition1 Internet and Distributed Application Services Chapter 13.
Architectural Design, Distributed Systems Architectures
Course Instructor: Aisha Azeem
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 12 Slide 1 Distributed Systems Design 1.
Software Architecture
Client/Server Architectures
Distributed Software Engineering To explain the advantages and disadvantages of different distributed systems architectures To discuss client-server and.
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 12 Slide 1 Distributed Systems Architectures.
Architectural Design, Distributed Systems Architectures
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 12 Slide 1 Distributed Systems Architectures.
1 소프트웨어공학 강좌 Chap 9. Distributed Systems Architectures - Architectural design for software that executes on more than one processor -
©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 11Slide 1 Chapter 11 Distributed Systems Architectures.
Distributed Systems Architectures
©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.
©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 10Slide 1 Architectural Design l Establishing the overall structure of a software system.
Lecture 22: Client-Server Software Engineering
CSC 480 Software Engineering Lecture 18 Nov 6, 2002.
1 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 5/e and are provided with permission by.
Distributed System Architectures Yonsei University 2 nd Semester, 2014 Woo-Cheol Kim.
CSC 480 Software Engineering High Level Design. Topics Architectural Design Overview of Distributed Architectures User Interface Design Guidelines.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 12 Slide 1 Distributed Systems Architectures.
CSC 480 Software Engineering Lecture 17 Nov 4, 2002.
©Ian Sommerville 2000, Tom Dietterich 2001 Slide 1 Distributed Systems Architectures l Architectural design for software that executes on more than one.
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 12 Slide 1 Distributed Systems Architectures.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 12 Slide 1 Distributed Systems Architectures.
E-commerce Architecture Ayşe Başar Bener. Client Server Architecture E-commerce is based on client/ server architecture –Client processes requesting service.
Dr D. Greer, Queens University Belfast ) Software Engineering Chapter 7 Software Architectural Design Learning Outcomes Understand.
1 Distributed Systems Architectures Distributed object architectures Reference: ©Ian Sommerville 2000 Software Engineering, 6th edition.
Distributed Systems Architectures Chapter 12. Objectives  To explain the advantages and disadvantages of different distributed systems architectures.
Distributed Systems Architectures. Topics covered l Client-server architectures l Distributed object architectures l Inter-organisational computing.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 12 Slide 1 Distributed Systems Architectures.
Distributed Systems Architectures
Software architecture
CompSci 280 S Introduction to Software Development
The Client/Server Database Environment
Distribution and components
Part 3 Design What does design mean in different fields?
The Client/Server Database Environment
CSC 480 Software Engineering
Database Architectures and the Web
CHAPTER 2 CREATING AN ARCHITECTURAL DESIGN.
#01 Client/Server Computing
Ch > 28.4.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Database System Concepts and Architecture.
Data, Databases, and DBMSs
Ch 15 –part 3 -design evaluation
CS 425/625 Software Engineering Architectural Design
Lecture 1: Multi-tier Architecture Overview
Software Architecture
Architectural Design.
Chapter 6 – Architectural Design
Software models - Software Architecture Design Patterns
Software Design.
Chapter 5 Architectural Design.
Design Yaodong Bi.
Distributed Systems Architectures
#01 Client/Server Computing
Presentation transcript:

Software Architecture

Software Architecture Architectural Design process for identifying the subsystems that make up a system defines framework for sub-system control and communication Software Architecture description of the system output by architectural design

Architectural Design Process System structuring system decomposed into several subsystems subsystem communication is established Control modeling model of control relationships among system components is established Modular decomposition identified subsystems decomposed into modules

Architectural Models Static structural model Dynamic process model shows major system components Dynamic process model shows process structure of the system Interface model defines subsystem interfaces Relationships model data flow or control flow diagrams

CASE Repository Model

Call-Return Model

Real-Time System Control Model

Selective Broadcasting Model

Interrupt-Driven Control Model

Compiler Model

OSI Reference Model Application

Distributed Systems Most large computer systems are implemented as distributed systems Information is also distributed over several computers rather than being confined to a single machine Distributed software engineering has become very important

System Types Personal systems Embedded systems Distributed systems designed to run on a single user system Embedded systems may run on a single processor might run on an integrated group of processors Distributed systems system software runs on loosely integrated group of cooperating processors linked by a network

Distributed Systems Characteristics Concerns Complexity Communication Resource sharing Openness Concurrency Scalable Fault tolerant Transparent Concerns Complexity Communication Security Manageability Quality of Service Unpredictability

Distributed Systems Architectures Client/Server offer distributed services which may be called by clients servers providing services are treated differently than clients using the services Distributed Object no distinctions made between clients and servers any system object may provide and use services from any other system object

Middleware Software that manages and supports the different components of a distributes system Sits in the middle of the system to broker service requests among components Usually off-the-shelf products rather than custom Representative architectures CORBA (ORB) COM (Microsoft) JavaBeans (Sun)

Multiprocessor Architecture Simplest distributed system model System composed of multiple processes that may execute on different processors Model used in many large real-time systems Distribution of processes to processors may be preordered or may be under control of a dispatcher

Multiprocessor Traffic Control System from Sommerville

Client/Server Architectures Application is modeled as a set of services that are provided by servers and a set of clients that use these services Clients know the servers but the servers do not need to know all the clients Clients and servers are logical processes (not always physical machines) The mapping of processes to processors is not always 1:1

Client/Server System from Sommerville

Representative Client/Server Systems Part 1 File servers client requests selected records from a file server transmits records to client over the network Database servers client sends SQL requests to server server processes the request server returns the results to the client over the network

Representative Client/Server Systems part 2 Transaction servers client sends requests that invokes remote procedures on the server side server executes procedures invoked and returns the results to the client Groupware servers server provides set of applications that enable communication among clients using text, images, bulletin boards, video, etc.

Client/Server Software Components User interaction/presentation subsystem Application subsystem implements requirements defined by the application within the context of the operating environment components may reside on either client or server side Database management subsystem Middleware all software components that exist on both the client and the server to allow exchange of information

Representative Client/Server Configurations - part 1 Distributed presentation database and application logic remain on the server client software reformats server data into GUI format Remote presentation similar to distributed presentation primary database and application logic remain on the server data sent by the server is used by the client to prepare the user presentation

Representative Client/Server Configurations - part 2 Distributed logic client is assigned all user presentation tasks associated with data entry and formulating server queries server is assigned data management tasks and updates information based on user actions Remote data management applications on server side create new data sources applications on client side process the new data returned by the server

Representative Client/Server Configurations - part 3 Distributed databases data is spread across multiple clients and servers requires clients to support data management as well as application and GUI components Fat server most software functions for C/S system are allocated to the server Thin clients network computer approach relegating all application processing to a fat server

Thin Client Model Used when legacy systems are migrated to client server architectures the legacy system may act as a server in its own right the GUI may be implemented on a client It chief disadvantage is that it places a heavy processing load on both the server and the network

Fat Client Model More processing is delegated to the client as the application processing is locally extended Suitable for new client/server systems when the client system capabilities are known in advance More complex than thin client model with respect to management issues New versions of each application need to installed on every client

Three-tier Architecture Each application architecture layers (presentation, application, database) may run on separate processors Allows for better performance than a thin-client approach Simpler to manage than fat client approach Highly scalable (as demands increase add more servers)

Three-Tier Architecture from Sommerville

Guidelines for Distributing Application Subsystems The presentation/interaction subsystem is generally placed on the client. If the database is to be shared by multiple users connected by a LAN, the database is typically located on the server. Static data used for reference should be allocated to the client.

Linking Client/Server Software Subsystems Pipes permit messaging between different machines running different operating systems Remote procedure calls permit process running on one machine to invoke execute of process residing on another machine Client/server SQL interaction SQL requests passed from client to server DBMS, this mechanism is limited to RDBMS

Design Issues for Client/Server Systems - part 1 Data and architectural design dominates the design process to be able to effectively use the capabilities of RDBMS or OODMBS Event-driven paradigm when used, behavioral modeling should be conducted the control-oriented aspects of the behavioral model should translated into the design model

Design Issues for Client/Server Systems - part 2 Interface design elevated in importance user interaction/presentation component implements all functions associated with a GUI Object-oriented point of view often chosen, since object structure is provided by events initiated in the GUI and their event handlers within the client- based software

Architectural Design for Client/Server Systems - part 1 Best described as communicating processes style architecture Architectural goal is to achieve easy scalability when adding and arbitrary number of clients Modern C/S systems tend to be component-based An object request broker (ORB) architecture is used for implementation

Architectural Design for Client/Server Systems - part 2 Object adapters or wrappers facilitate communication among clients and servers component implementations are registered all component references are interpreted and reconciled component references are mapped to corresponding component implementations objects are activated and deactivated operations are invoked when messages are transmitted security features are implemented

Client/Server Design Repository Information - part 1 Entities (from ER diagram) Files (which implement entities) File-to-field relationship (establishes file layout) Fields (from data dictionary) File-to-file relationships related files that may be joined together Relationship validation

Client/Server Design Repository Information - part 2 Field type used to permit inheritance from super classes Data type (characteristics of field data) File type (used to identify file location) Field function (key, foreign key, attribute, etc.) Allowed values Business values rules for editing, calculating derived fields, etc.

Data Distribution and Management Techniques - part 1 Relational data base management systems Manual extract user allowed to manually copy data from server to client Snapshot automates manual extract by specifying a copy of the data be transferred from the client to the server at predefined intervals

Data Distribution and Management Techniques - part 2 Replication multiple copies of data are maintained at different sites Fragmentation system database is spread across several machines

Client/Server Design Approach 1. For each elementary business process, identify the files created, updated, referenced, or deleted. 2. Use files from step 1 as basis for defining components. 3. For each component, retrieve the business rules and other business object information that has been established for the relevant file. 4. Determine which rules are relevant to the process and decompose the rules down to the method level. 5. As required, define any additional components that are needed to implement the methods.

Process Design Entities - part 1 Methods describe how a business rule is to be implmemented Elementary processes business processes identified in the analysis model Process/component link identifies components that makeup the solution for an elementary business process

Process Design Entities - part 2 Components describes components shown on structure chart Business rule/component link identifies components significant to implementation of a given business rule

Client/Server Testing Strategy part 1 Application function tests client applications tested in stand alone manner Server tests test coordination and management functions of server also measure performance of server Database tests check accuracy and integrity server data examine transactions posted by client, test archiving

Client/Server Testing Strategy part 2 Transaction testing ensure each class of transactions is processed correctly Network communication testing verify communication among network nodes

Client/Server Testing Tactics Begins with testing in the small and then proceeds to integration testing using the non-incremental or big bang approach Requires special attention to configuration testing and compatibility testing OO testing tactics can be used for C/S systems GUI testing requires special techniques in C/S systems (e.g. structured capture/playback)

Distributed Object Architectures No distinctions made between client objects and server objects Each distributable entity is an object that both provides and consumes services Object communication is though an object request broker (middleware or software bus) More complex to design than client/server systems

Distributed Object Architecture from Sommerville

Distributed Object Architecture Advantages Allows system designer to delay decisions on where and how services should be provided Very open architecture that allows new resources to be added as required System is flexible and scalable Dynamic reconfiguration is possible by allowing objects to migrate across the network as required

Uses of Distributed Object Architectures As a logical model that allows you to structure and organize the system think about how to provide application functionality solely in terms of services and combinations of services As a flexible approach to the implementation of client/server systems the logical model of the system is client/server with both clients and servers realized as distributed object communicating through a software bus