2080 2

BIT302 ยท 2080 ยท 10 marks

Explain different architectural views. What are the fundamental questions that needs to be answered when designing a system architecture?

Explain different architectural views. What are the fundamental questions that needs to be answered when designing a system architecture?[10]

Software EngineeringChapter 4: Software ArchitectureArchitectural views and design questions

Quick answer

Software architecture cannot be fully described by a single diagram or perspective. Multiple architectural views are used to represent different aspects of a system, each addressing the concerns of different stakeholders.

Architectural Views and Fundamental Questions in System Architecture Design


Part 1: Different Architectural Views

The most widely accepted model is the "4+1" View Model proposed by Philippe Kruchten.


1. Logical View (Design View)

  • Describes the functional requirements of the system -- what the system should provide to end users.
  • Focuses on the object model of the design (classes, objects, relationships).
  • Stakeholders: End users and designers.
  • Represented using: Class diagrams, Object diagrams, State diagrams.

Example: How the system is decomposed into key abstractions and objects.


2. Process View

  • Describes the dynamic aspects of the system -- how processes communicate and run concurrently.
  • Addresses concerns of concurrency, distribution, performance, and scalability.
  • Stakeholders: System integrators and performance engineers.
  • Represented using: Activity diagrams, Sequence diagrams.

Example: How threads interact and how tasks are scheduled at runtime.


3. Development View (Implementation View)

  • Describes the system from a programmer's perspective.
  • Focuses on the organization of software modules in the development environment (packages, components, subsystems).
  • Addresses concerns of software management, reuse, and portability.
  • Stakeholders: Programmers and software managers.
  • Represented using: Component diagrams, Package diagrams.

Example: How source code is organized into modules and libraries.


4. Physical View (Deployment View)

  • Describes the mapping of software onto hardware.
  • Addresses concerns of topology, distribution, delivery, and installation.
  • Stakeholders: System engineers and network administrators.
  • Represented using: Deployment diagrams.

Example: Which server hosts which component, and how nodes are connected.


5. Scenarios View (Use Case View) -- The "+1"

  • Describes the system from the end user's perspective using use cases.
  • Acts as the central view that ties all other views together.
  • Used to validate and illustrate the architecture.
  • Stakeholders: All stakeholders.
  • Represented using: Use case diagrams, Interaction diagrams.

Example: A user logs in -- this scenario involves logical, process, development, and physical views simultaneously.


Summary Table

ViewFocusStakeholderNotation
LogicalFunctionalityEnd usersClass, State diagrams
ProcessConcurrency/RuntimeIntegratorsActivity, Sequence diagrams
DevelopmentSoftware organizationProgrammersComponent, Package diagrams
PhysicalHardware mappingSystem engineersDeployment diagrams
ScenariosUse casesAllUse case diagrams

Part 2: Fundamental Questions in Designing a System Architecture

When designing a system architecture, an architect must answer the following fundamental questions:


1. What are the system's functional requirements?

  • What must the system do?
  • What are the core features and services the system must provide to users?

2. What are the non-functional requirements (Quality Attributes)?

  • What are the performance, scalability, reliability, security, and maintainability requirements?
  • These often drive major architectural decisions.

3. How should the system be decomposed?

  • How should the system be broken down into components, modules, or subsystems?
  • What are the responsibilities of each component?

4. How will components communicate and interact?

  • What interfaces and protocols will components use?
  • Will communication be synchronous or asynchronous?
  • How will data flow between components?

5. How will the system be distributed?

  • Will the system run on a single machine or multiple nodes?
  • How will it handle distributed computing, load balancing, and fault tolerance?

6. What architectural style or pattern should be used?

  • Should the system follow layered, microservices, event-driven, client-server, or pipe-and-filter architecture?
  • Which pattern best fits the requirements?

7. How will the system handle change and evolution?

  • How flexible and extensible is the architecture?
  • Can new features be added without major restructuring?

8. What are the technology and platform constraints?

  • What programming languages, frameworks, databases, and hardware will be used?
  • Are there legacy system constraints?

9. How will the system ensure security?

  • How will authentication, authorization, and data protection be handled?
  • Where are the security boundaries?

10. How will the system be tested, deployed, and maintained?

  • What is the deployment strategy?
  • How will the system be monitored and updated after deployment?

Conclusion

Architectural views provide multiple perspectives on a system to satisfy the concerns of different stakeholders. The 4+1 model (Logical, Process, Development, Physical, and Scenarios) is the standard approach. Answering the fundamental architectural questions ensures that the system is well-structured, meets both functional and non-functional requirements, and can evolve over time.

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.