240 likes | 528 Views
Software System Design. System Architecture Distributed Systems Object-Oriented Design Design with Reuse (component-based design) Designing User Interfaces. Software System Design. System Architecture System structuring Control models Modular decomposition Domain-specific architectures.
E N D
Software System Design • System Architecture • Distributed Systems • Object-Oriented Design • Design with Reuse (component-based design) • Designing User Interfaces System Architectures
Software System Design • System Architecture • System structuring • Control models • Modular decomposition • Domain-specific architectures System Architectures
Software Architecture What is a Software Architecture? • High-level description of a complex software system • Includes both diagrams and text • Simplified diagrams often used for marketing (e.g. Apple’s OS X) System Architectures
Software Architecture • All systems have an architecture, but what are the benefits of designing (and specifying) one? • Stakeholder communication • System analysis (reasoning about non-functional requirements) • Reuse • Project management (concurrent development) System Architectures
Software Architecture What is a Software Architecture? Answers questions like: • What are the primary subsystems? • What is the division of labor? • How will the subsystems communicate? • What will the subsystems communicate? System Architectures
Subsystems A subsystem is a system in its own right whose operation does not depend on services provided by other systems. Subsystems are composed of modules, and have defined interfaces used for communication with other subsystems. Sommerville, p. 217 . • Design/implementation often delegated to different engineering teams • Development can proceed in parallel • Separation of responsibility • Minimal inter-subsystem communication System Architectures
Software Architecture • Subsystem breakdown guided by: • Performance • Security • Safety • Availability • Maintainability System Architectures
Software Architecture • Subsystem breakdown guided by: • Performance • Minimize communication among subsystems • Security • Safety • Availability • Maintainability System Architectures
Software Architecture • Subsystem breakdown guided by: • Performance • Security • Use layered architecture, with critical assets in inner layers • Safety • Availability • Maintainability System Architectures
Software Architecture • Subsystem breakdown guided by: • Performance • Security • Safety • Isolate safety-critical components • Availability • Maintainability System Architectures
Software Architecture • Subsystem breakdown guided by: • Performance • Security • Safety • Availability • Redundancy, replication of services • Maintainability System Architectures
Software Architecture • Subsystem breakdown guided by: • Performance • Security • Safety • Availability • Maintainability • Subsystems’ modules with self-contained components System Architectures
Structural Models • The Repository • The Client-Server Model • The Abstract Machine System Architectures
The Repository Model • Shared data is stored in centralized location (the repository subsystem), and accessed by various (other) subsystems • Shared data is passed from one subsystem to the next (“pipeline” architecture) • E.g., compiler System Architectures
CASE toolset architecture System Architectures
The Repository Model • Characteristics • Sharing model is published as repository schema • Pros • Efficient way to share large amounts of data • Data integrity localized to repository module • Cons • Subsystems must agree (i.e., compromise) on a repository data model. • Schema evolution is difficult and expensive • Distribution can be a problem System Architectures
Client-server architecture • Subsystems are viewed as independent processes. • Set of stand-alone servers which provide specific services such as printing, data management, etc. • Set of clients which call on these services. Servers can be clients of other servers. • Communication network System Architectures
Film and picture library System Architectures
Client-server characteristics • Pros • Makes effective use of networked systems. May require cheaper hardware • Easy to add new servers or upgrade existing servers • Availability (redundancy) may be straightforward • Cons • Data interchange can be hampered by different data layouts • Communication may be expensive • Data integrity functionality must be implemented for each server • The “naming” problems System Architectures
Abstract machine model • Organises the system into a set of layers (or abstract machines) 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 • Can’t model all systems this way System Architectures
Abstract machine model • Examples • Version Management System • Operating System (e.g., Linux) • Runtime Language Environments (e.g., Java) System Architectures
Version management system System Architectures