86
Architectural Design

Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

  • Upload
    hadien

  • View
    215

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Architectural Design

Page 2: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Topics

i. Architectural design decisions

ii. Architectural views

iii. Architectural patterns

iv. Application architectures

Page 3: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

ARCHITECTURAL DESIGN DECISIONS

PART 1

Page 4: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Recap on SDLC Phases & Artefacts Domain Analysis

@ Business Process

Requirement

Analysis

Design

Implementation

Testing & Deployment

Maintenance & Evolution

Domain Model (Class Diagram)

1) Functional & Non-Functional requirement 2) Use Case diagram

1) System Sequence Diagram 2) Activity Diagram

1) Class Diagram (refined) 2) Detail Sequence Diagram 3) State Diagram

1) Application Source Code 2) User Manual Documentation

1) Test Cases 2) Prototype

1) Change Request Form

SRS

Page 5: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Recap on SDLC Phases & Artefacts Domain Analysis

@ Business Process

Requirement

Analysis

Design

Implementation

Testing & Deployment

Maintenance & Evolution

Domain Model (Class Diagram)

1) Functional & Non-Functional requirement 2) Use Case diagram

1) System Sequence Diagram 2) Activity Diagram

1) Class Diagram (refined) 2) Detail Sequence Diagram 3) State Diagram

1) Application Source Code 2) User Manual Documentation

1) Test Cases 2) Prototype

1) Change Request Form

SRS

Page 6: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Recap on Design process (Ch.2)

Page 7: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Recap on Design process (Ch.2)

Page 8: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Definitions

• Architectural design :

– The design process for identifying the sub-systems making up a system and the framework for sub-system control and communication.

• The output of this design process is a description of the software architecture.

Page 9: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Architecture Analogy for Software vs. House?

Page 10: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Rationale on Architectural design decisions

• Architectural design is a creative process so the process differs depending on the type of system being developed.

• Due to the creative process, the activities within the process depend on the type of the system being developed, background and experience of system architect, specific requirements of the system

• During architectural design process, system architects have to make a number of structural decisions that profoundly affect the system and its development process 9 DESIGN DECISION QUESTIONS

Page 11: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Architectural design decisions (NINE QUESTIONS)

1. What approach will be used to structure the system?

2. What architectural styles are appropriate?

3. What control strategy should be used?

4. How will the structural components be decomposed into subcomponents?

5. Is there a generic application architecture that can be used?

6. What architectural organization is best for delivering the non functional requirements?

7. How will the system be distributed?

8. How will the architectural design be evaluated?

9. How should the architecture be documented?

Page 12: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

ARCHITECTURAL VIEWS

PART 2

Page 13: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

1. What approach will be used to structure the system?

Architectural design decisions (NINE QUESTIONS)

Page 14: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Analogy of House Architectural View

Exterior elevations of the front, rear, and sides of the house

Interior elevations showing details of fireplaces, cabinets, built-in units, and other special interior features.

Different views of a house

Detailed floor plans Roof plans showing details of the layout.

Schematic electrical layouts

Page 15: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how
Page 16: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Architectural views

• What views or perspectives are useful when designing and documenting a system’s architecture?

• What notations should be used for describing architectural models?

• Each architectural model only shows one view or perspective of the system. – It might show how a system is decomposed into

modules, how the run-time processes interact or the different ways in which system components are distributed across a network.

– For both design and documentation, you usually need to present multiple views of the software architecture.

Page 17: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

4+1 view architecture

Page 18: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

4 + 1 view model of software architecture

1. A design/logical view: shows the key abstractions in the system as objects or object classes.

2. A process view : shows how, at run-time, the system is composed of interacting processes.

3. A implementation view: shows how the software is decomposed for development.

4. A deployment/physical view: shows the system hardware and how software components are distributed across the processors in the system.

• Related using use cases or scenarios (+1)

Page 19: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

ARCHITECTURAL PATTERNS

PART 3

Page 20: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

2. What architectural styles are appropriate?

3. What control strategy should be used?

4. How will the structural components be decomposed into subcomponents?

Architectural design decisions (NINE QUESTIONS)

Page 21: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

2. What architectural styles are appropriate?

3. What control strategy should be used?

4. How will the structural components be decomposed into subcomponents?

Architectural design decisions (NINE QUESTIONS)

Page 22: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Architectural Design Classification

Architectural Design

Architectural

Style Control

Strategy

Modular

Decomposition

Repository

Model

Client Server

Model

Layered

Model Object Oriented

Model

Function

Oriented

Model

Centralized

Control Model

Event-Driven

Control Model

Call-Return

Model

Manager

Model Broadcast

Model

Interrupt-

Driven Model

Pipe line Model View

Controller

Page 23: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Architectural patterns styles

• Patterns are a means of representing, sharing and reusing knowledge.

• An architectural pattern is a stylized description of good design practice, which has been 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.

Page 24: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

33

Architectural Design

Architectural

Style Control

Strategy

Modular

Decomposition

Repository

Model

Client Server

Model

Layered

Model Object Oriented

Model

Function

Oriented

Model

Centralized

Control Model

Event-Driven

Control Model

Call-Return

Model

Manager

Model Broadcast

Model

Interrupt-

Driven Model

Pipe line

Architectural Design Classification

Page 25: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

1. Repository architecture

• Sub-systems must exchange data. This may be done in two ways: 1. Shared data is held in a central database or

repository and may be accessed by all sub-systems; 2. Each sub-system maintains its own database and

passes data explicitly to other sub-systems.

• When to use: 1. large amounts of data are to be shared and stored

for a long time. 2. In data-driven systems where the inclusion of data

in the repository triggers an action or tool

Page 26: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

The Repository architecture

Advantages Disadvantages

• Components 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)

• Problems in the repository affect the whole system.

• Inefficiencies in organizing all communication through the repository.

• Difficulties in distributing the repository across several computers

Page 27: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

A repository architecture for an IDE

Page 28: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

2. Client-server architecture

• Distributed system model which shows how data and processing is distributed across a range of components. – Can be implemented on a single computer.

– Set of stand-alone servers which provide specific services such as printing, data management, etc.

– Set of clients which call on these services.

– Network which allows clients to access servers.

• Used when data in a shared database has to be accessed from a range of locations.

Page 29: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

The Client–server pattern

Advantages Disadvantages

• Servers can be distributed across a network.

• Each service is a single point of failure so susceptible to denial of service attacks or server failure.

• General functionality (e.g., a printing service) can be available to all clients and does not need to be implemented by all services.

• Performance may be unpredictable because it depends on the network as well as the system.

Page 30: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

A client–server architecture for a film library

Page 31: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

3.The Layered Model

• Organize a system into layers – Each layer provides services to the one outside it and

acts as a client to the layer inside

– The design includes protocols that explain how each pair of layers will interact

– Each layer can be thought of as an abstract machine

• Also called an abstract machine model

– Incremental development of sub-systems in different layers • When a layer interface changes, only the adjacent

layer is affected.

Page 32: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

3.The Layered Model

• Used when

– building new facilities on top of existing systems

– the development is spread across several teams with each team responsibility for a layer of functionality

– there is a requirement for multi-level security

– security is a critical requirement.

• Example: layered security architecture - a system to provide file security

Page 33: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

3.The Layered Model

• Advantages :

• Each layer can be considered to be an increasing level of abstraction

• Designers can use the layers to decompose a problem into a sequence of more abstract steps

• It’s easy to add or modify a layer as the need arises

• Disadvantages :

• Not easy to structure a system in layers

• The multiple layers of abstraction are not always evident when examine a set of requirements

• System performance may suffer from the extra coordination among the layers

Page 34: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Example: Version Management System

Page 35: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Example: LIBSYS system

Page 36: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

45

Example: ATM system

Page 37: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

4. Pipe and filter architecture

• The processing of the data in a system is organized so that each processing component (filter) is discrete and carries out one type of data transformation.

• The data flows (as in a pipe) from one component to another for processing. – May be referred to as a pipe and filter model (as in

UNIX shell).

• Commonly used in data processing applications (both batch- and transaction-based) where inputs are processed in separate stages to generate related outputs. – Not really suitable for interactive systems.

Page 38: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

4. Pipe and filter architecture

Advantages

• Easy to understand and supports transformation reuse.

• Workflow style matches the structure of many business processes.

• Evolution by adding transformations is straightforward.

• Can be implemented as either a sequential or concurrent system.

Disadvantages

• The format for data transfer has to be agreed upon between communicating transformations.

• Each transformation must parse its input and unparse its output to the agreed form.

– this increases system overhead

Page 39: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

An example of the pipe and filter architecture

Page 40: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Architectural Design Classification

Architectural Design

Architectural

Style Control

Strategy

Modular

Decomposition

Repository

Model

Client Server

Model

Layered

Model Object Oriented

Model

Function

Oriented

Model

Centralized

Control Model

Event-Driven

Control Model

Call-Return

Model

Manager

Model Broadcast

Model

Interrupt-

Driven Model

Pipe line Model View

Controller

Page 41: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

2. What architectural styles are appropriate?

3. What control strategy should be used?

4. How will the structural components be decomposed into subcomponents?

Architectural design decisions (NINE QUESTIONS)

Page 42: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Architectural Design Classification

Architectural Design

Architectural

Style Control

Strategy

Modular

Decomposition

Repository

Model

Client Server

Model

Layered

Model Object Oriented

Model

Function

Oriented

Model

Centralized

Control Model

Event-Driven

Control Model

Call-Return

Model

Manager

Model Broadcast

Model

Interrupt-

Driven Model

Pipe line Model View

Controller

Page 43: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Control Styles

• Are concerned with the control flow between sub-systems

• Sub-systems must be controlled • Two generic control styles

1. Centralized control • One sub-system has overall responsibility

for control and starts and stops other sub-systems.

2. Event-based control • Each sub-system can respond to

externally generated events from other sub-systems or the system’s environment.

Page 44: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

1. Centralized Control

• A control sub-system takes responsibility for managing the execution of other sub-systems.

1. Call-return model – Top-down subroutine model where control starts

at the top of a subroutine hierarchy and moves downwards. Applicable to sequential systems.

2. Manager model – Applicable to concurrent systems. One system

component controls the stopping, starting and coordination of other system processes. Can be implemented in sequential systems as a case statement.

Page 45: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

1.1. The Call-Return Model

Page 46: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

1.2. The Manager Model

Page 47: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Architectural Design Classification

Architectural Design

Architectural

Style Control

Strategy

Modular

Decomposition

Repository

Model

Client Server

Model

Layered

Model Object Oriented

Model

Function

Oriented

Model

Centralized

Control Model

Event-Driven

Control Model

Call-Return

Model

Manager

Model Broadcast

Model

Interrupt-

Driven Model

Pipe line Model View

Controller

Page 48: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

2. Event-Driven System

• An event vs. an input

– Driven by externally generated events where the timing of the event is outwith the control of the sub-systems which process the event.

• Two principal event-driven models

1. Broadcast models.

– An event is broadcast to all sub-systems. Any sub-system which can handle the event may do so – different computers on a network;

1. Interrupt-driven models.

– Used in real-time systems where interrupts are detected by an interrupt handler and passed to some other component for processing – real-time systems.

Page 49: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

2.1. Broadcast Model

• Effective in integrating sub-systems on different computers in a network.

• Sub-systems register an interest in specific events. When these occur, control is transferred to the sub-system which can handle the event.

• Control policy is not embedded in the event and message handler. Sub-systems decide on events of interest to them.

• However, sub-systems don’t know if or when an event will be handled.

Page 50: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

A Broadcast Model

Page 51: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

2.2. Interrupt-driven control

• Used in real-time systems where fast response to an event is essential.

• There are known interrupt types with a handler defined for each type.

• Each type is associated with a memory location and a hardware switch causes transfer to its handler.

• Allows fast response but complex to program and difficult to validate.

Page 52: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

An Interrupt-Driven Model

Page 53: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Architectural Design Classification

Architectural Design

Architectural

Style Control

Strategy

Modular

Decomposition

Repository

Model

Client Server

Model

Layered

Model Object Oriented

Model

Function

Oriented

Model

Centralized

Control Model

Event-Driven

Control Model

Call-Return

Model

Manager

Model Broadcast

Model

Interrupt-

Driven Model

Pipe line Model View

Controller

Page 54: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

2. What architectural styles are appropriate?

3. What control strategy should be used?

4. How will the structural components be decomposed into subcomponents?

Architectural design decisions (NINE QUESTIONS)

Page 55: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Architectural Design Classification

Architectural Design

Architectural

Style Control

Strategy

Modular

Decomposition

Repository

Model

Client Server

Model

Layered

Model Object Oriented Model

(nxt wk’s topic)

Function

Oriented

Model

Centralized

Control Model

Event-Driven

Control Model

Call-Return

Model

Manager

Model Broadcast

Model

Interrupt-

Driven Model

Pipe line Model View

Controller

Page 56: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

APPLICATION ARCHITECTURAL

PART 4

Page 57: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

5. Is there a generic application architecture that can be used?

Architectural design decisions (NINE QUESTIONS)

Page 58: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Application architectures

• Application systems are designed to meet an organizational need.

• As businesses have much in common, their application systems also tend to have a common architecture that reflects the application requirements.

• A generic application architecture is an architecture for a type of software system that may be configured and adapted to create a system that meets specific requirements.

Page 59: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Use of application architectures

• As a starting point for architectural design.

• As a design checklist.

• As a way of organizing the work of the development team.

• As a means of assessing components for reuse.

• As a vocabulary for talking about application types.

Page 60: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Examples of application types

1. Data processing applications

– Data driven applications that process data in batches without explicit user intervention during the processing.

2. Transaction processing applications

– Data-centered applications that process user requests and update information in a system database.

3. Event processing systems

– Applications where system actions depend on interpreting events from the system’s environment.

4. Language processing systems

– Applications where the users’ intentions are specified in a formal language that is processed and interpreted by the system.

Page 61: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Summary of Generic Application Architecture

Generic Application Architecture

Transaction Processing

Systems

Language Processing

Systems

Data Processing

Applications

Event Processing

Systems

Page 62: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Application type examples

• Focus here is on transaction processing and language processing systems.

• Transaction processing systems – E-commerce systems;

– Reservation systems.

• Language processing systems – Compilers;

– Command interpreters.

Page 63: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Focus of Generic Application Architecture

Generic Application Architecture

Transaction Processing

Systems

ATM Information

System

Web based i.e e- commerce

system

Language Processing

Systems

Compilers Natural

Language Translator

Data Processing

Applications

Event Processing

Systems

- Can have either layered or client and server architecture style

-Can have pipe and filter Architecture style

Page 64: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Transaction processing systems

• Process user requests for information from a database or requests to update the database.

• From a user perspective a transaction is: – Any coherent sequence of operations that satisfies a

goal;

– For example - find the times of flights from London to Paris.

• Users make asynchronous requests for service which are then processed by a transaction manager.

Page 65: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

The structure of transaction processing applications

Page 66: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

The software architecture of an ATM system

Page 67: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Information systems architecture

• Information systems have a generic architecture that can be organised as a layered architecture.

• These are transaction-based systems as interaction with these systems generally involves database transactions.

• Layers include: – The user interface – User communications – Information retrieval – System database

Page 68: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Layered information system architecture

Page 69: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

The architecture of the MHC-PMS

Page 70: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Web-based information systems

• Information and resource management systems are now usually web-based systems where the user interfaces are implemented using a web browser.

• For example, e-commerce systems are Internet-based resource management systems that accept electronic orders for goods or services and then arrange delivery of these goods or services to the customer.

• In an e-commerce system, the application-specific layer includes additional functionality supporting a ‘shopping cart’ in which users can place a number of items in separate transactions, then pay for them all together in a single transaction.

Page 71: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Server implementation

• These systems are often implemented as multi-tier client server/architectures (discussed in Chapter 18) – The web server is responsible for all user

communications, with the user interface implemented using a web browser;

– The application server is responsible for implementing application-specific logic as well as information storage and retrieval requests;

– The database server moves information to and from the database and handles transaction management.

Page 72: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Focus of Generic Application Architecture

Generic Application Architecture

Transaction Processing

Systems

ATM Information

System

Web based i.e e- commerce

system

Language Processing

Systems

Compilers Natural

Language Translator

Data Processing

Applications

Event Processing

Systems

- Can have either layered or client and server architecture style

-Can have pipe and filter (pipeline) architecture style

- Can have either pipe or filter (pipeline) repository architecture style

Page 73: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Language processing systems

• Accept a natural or artificial language as input and generate some other representation of that language.

• May include an interpreter to act on the instructions in the language that is being processed.

• Used in situations where the easiest way to solve a problem is to describe an algorithm or describe the system data

– Meta-case tools process tool descriptions, method rules, etc and generate tools.

Page 74: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

The architecture of a language processing system

Page 75: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Compiler components

• A lexical analyzer, which takes input language tokens and converts them to an internal form.

• A symbol table, which holds information about the names of entities (variables, class names, object names, etc.) used in the text that is being translated.

• A syntax analyzer, which checks the syntax of the language being translated.

• A syntax tree, which is an internal structure representing the program being compiled.

Page 76: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Compiler components

• A semantic analyzer that uses information from the syntax tree and the symbol table to check the semantic correctness of the input language text.

• A code generator that ‘walks’ the syntax tree and generates abstract machine code.

Page 77: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

A pipe and filter compiler architecture

Page 78: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

A repository architecture for a language processing system

Page 79: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Focus of Generic Application Architecture

Generic Application Architecture

Transaction Processing

Systems

ATM Information

System

Web based i.e e- commerce

system

Language Processing

Systems

Compilers Natural

Language Translator

Data Processing

Applications

Event Processing

Systems

- Can have either layered or client and server architecture style

-Can have pipe and filter (pipeline) architecture style

- Can have either pipe or filter (pipeline) repository architecture style

Page 80: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

6. What architectural organization is best for delivering the non functional requirements?

Architectural design decisions (NINE QUESTIONS)

Page 81: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Non functional requirements and Architectural Organization

1. Performance – Localise critical operations and minimise communications. Use large

rather than fine-grain components.

2. Security – Use a layered architecture with critical assets in the inner layers.

3. Safety

- Localise safety-critical features in a small number of sub-systems.

4. Availability - Include redundant components and mechanisms for fault tolerance.

5. Maintainability

- Use fine-grain, replaceable components.

Page 82: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Key points

• A software architecture is a description of how a software system is organized.

• Architectural design decisions include decisions on the type of application, the distribution of the system, the architectural styles to be used.

• Architectures may be documented from several different perspectives or views such as a conceptual view, a logical view, a process view, and a development view.

• Architectural patterns are a means of reusing knowledge about generic system architectures. They describe the architecture, explain when it may be used and describe its advantages and disadvantages.

Page 83: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Key points

• Models of application systems architectures help us understand and compare applications, validate application system designs and assess large-scale components for reuse.

• Transaction processing systems are interactive systems that allow information in a database to be remotely accessed and modified by a number of users.

• Language processing systems are used to translate texts from one language into another and to carry out the instructions specified in the input language. They include a translator and an abstract machine that executes the generated language.

Page 84: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

EXERCISE

Page 85: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Architectural design decisions (NINE QUESTIONS)

1. What approach will be used to structure the system?

2. What architectural styles are appropriate?

3. What control strategy should be used?

4. How will the structural components be decomposed into subcomponents?

5. Is there a generic application architecture that can be used?

6. What architectural organization is best for delivering the non functional requirements?

7. How will the system be distributed?

8. How will the architectural design be evaluated?

9. How should the architecture be documented?

Page 86: Architectural Design - comp.utm.my · SRS . Recap on SDLC Phases ... the system • During architectural design process, system ... –The design includes protocols that explain how

Exercise

• During architectural design stage, a software architect have to identify the appropriate “ design decisions ” for the specified requirements during requirement and analysis stages.

• These “design decisions” are crucial for the next phase of development for the proposed application.

• Suggest the “design decisions” for your group project based on the specified requirements in previous SRS.

• Your “design decisions” must answered all the 6 questions.