Docsity

Architectural Design - Software Engineering - Lecture Slides, Slides of Software Engineering

Partial preview of the text

Download Architectural Design - Software Engineering - Lecture Slides and more Slides Software Engineering in PDF only on Docsity!

SE Fundamentals 4 – Architectural Design

Topics covered  Architectural design decisions  Architectural views  Architectural patterns (styles)

Architectural design  An early stage of the system design process.  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

Advantages of explicit architecture  Stakeholder communication  Architecture may be used as a focus of discussion by system stakeholders.  System analysis  Means that analysis of whether the system can meet its non- functional requirements is possible.  Large-scale reuse  The architecture may be reusable across a range of systems  Product-line architectures may be developed.

Architectural representations  Simple, informal block diagrams showing entities and relationships are the most frequently used method for documenting software architectures.  But these have been criticized because they lack semantics, do not show the types of relationships between entities nor the visible properties of entities in the architecture.

Architectural design decisions  Architectural design is a creative process so the process differs depending on the type of system being developed.  However, a number of common decisions span all design processes and these decisions affect the non- functional characteristics of the system.

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  Localize critical operations and minimize communications. Use large rather than fine-grain components.  Security  Use a layered architecture with critical assets in the inner layers.  Safety  Localize safety-critical features in a small number of sub-systems.  Availability  Include redundant components and mechanisms for fault tolerance.  Maintainability  Use fine-grain, replaceable components.

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.

4+1 Views Architecture

The “4 +1 views” architecture, Fig. 1.13 [Arlow & Neustadt 2005]

Architectural patterns  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.

The organization of the Model-View-Controller

Web application architecture using the MVC pattern