Docsity

Defining Software Architectures - Chapter 1, Dispense di Architettura Dei Calcolatori

Toggle sidebar
bg1
Defining Software Architectures – Chapter 1 May 2015
1
Defining Software Architectures
Version 4.0
May 2015
Francesco Tisato1 and Diego Bernini1
{tisato, bernini}@disco.unimib.it
1DISCo, Università degli Studi di Milano - Bicocca,
Viale Sarca, 336 20126 Milano, Italy
Abstract. This report presents the definition of a methodological approach to the analysis and the
design of software architectures. The overall process consists of five views. Problem Architecture
is the result of an analysis focused on the significant aspects of data, activities and information
flows from a user perspective. Logical Architecture groups activities into logical components, by
taking into account the relevant dimensions of the problem. Concrete Architecture specializes
logical components and information flows in terms of concrete components and interactions styles.
Implementation Architecture defines platform-dependent implementations of concrete components
and their interactions. Finally, Deployment Architecture assigns the concrete components to
computing nodes. The discussion is carried on via a reference example. Pros and cons of different
solutions are discussed and additional examples are sketched.
!!
pf3
pf4
pf5

Anteprima parziale del testo

Scarica Defining Software Architectures - Chapter 1 e più Dispense in PDF di Architettura Dei Calcolatori solo su Docsity!

Defining Software Architectures

Version 4.

May 2015

Francesco Tisato^1 and Diego Bernini^1

{tisato, bernini}@disco.unimib.it

1 DISCo, Università degli Studi di Milano - Bicocca,

Viale Sarca, 336 20126 Milano, Italy

Abstract. This report presents the definition of a methodological approach to the analysis and the

design of software architectures. The overall process consists of five views. Problem Architecture is the result of an analysis focused on the significant aspects of data, activities and information flows from a user perspective. Logical Architecture groups activities into logical components, by taking into account the relevant dimensions of the problem. Concrete Architecture specializes logical components and information flows in terms of concrete components and interactions styles. Implementation Architecture defines platform-dependent implementations of concrete components and their interactions. Finally, Deployment Architecture assigns the concrete components to computing nodes. The discussion is carried on via a reference example. Pros and cons of different solutions are discussed and additional examples are sketched.

1 Introduction "In conclusion, we offer the following conjecture: perhaps the reason for such slow progress in the development and evolution of software systems is that we have trained carpenters and contractors, but no architects." (Dewayne E. Perry and Alexander L. Wolf, 1992)

1.1 Goals of the report

The aim of this report is to provide a designer with some insights allowing the complexity of large IT systems to be managed. Managing the complexity implies to be both abstract and concrete. Abstract, because a complex problem cannot be faced without abstraction. Concrete, because cost-effective systems cannot be effectively built without a proper mapping of abstraction concepts into implementation elements. This requires to carefully consider how the fulfilment of domain constraints and non-functional requirements like performance, cost, scalability, availability, configuration and administration depend on design, implementation and technological issues. In the presented approach the software architecture of a given system can be designed in several phases, corresponding to more or less abstract views (if you prefer, abstractions levels, though the abuse of the term "level" might be confusing): Problem Architecture, Logical Architecture, Concrete Architecture, Implementation Architecture and Deployment Architecture. This organization borrows some central ideas from the Model Driven Architecture (MDA) approach [1]. In particular the views above roughly correspond to the typical phases of a MDA-like approach. The Problem Architecture view is the result of an analysis focused on the significant aspects of data, activities and information flows from a user perspective. The Logical Architecture view groups activities into logical components. A logical component is a cluster of activities. The activities are classified in several conceptual dimensions and are grouped to ensure a high degree of compactness and insulation in each dimension. The goal is to keep logical components as independent as possible and to minimize their interactions. The Concrete Architecture view specializes logical components and information flows in terms of concrete, but platform-neutral, components and interactions styles. The Implementation Architecture view defines concrete platform-dependent implementations of the concrete components and of their interactions. The Deployment Architecture assigns concrete components to computing nodes. Finally, the UML2 notation is used here as a communication tool and as a guideline.

1.2 Software Architecture

“ As the size and complexity of software systems increases, the design problem goes beyond the algorithms and data structures of the computation: designing and specifying the overall system structure emerges as a new kind of problem. Structural issues include gross organization and global control structure; protocols for communication, synchronization, and data access; assignment of functionality to design elements; physical distribution; composition of design elements; scaling and performance; and selection among design alternatives. This is the software architecture level of design. ” [2]

architecture can be described by various models, everyone focused on a particular perspective. For example, following [7] we can identify:

  • static structural model that shows the major system components;
  • dynamic process model that shows the process structure of the system;
  • interface model that defines sub-system interfaces;
  • relationships model that shows sub-system relationships. It is also useful to distinguish logical architecture and deployment architecture. The first one describes the system in terms of its conceptual organization, interfaces, and subsystems; the second one “describes the system in terms of the allocation of processes to processing units, and the network configuration” [16]. These terms must not be amazing: they are different facets of a software architecture, not “different architectures". This is the notion of architectural view: “a representation of a set of system elements and relations associated with them” [17]. [18] highlights their importance analogously to the architecture of a building. As observed by [7], the architectural model of a system may conform to a generic architectural model, called an architecture style: “a set of design rules that identify the kinds of components and connectors that may be used to compose a system or subsystem, together with local or global constraints on the way the composition is done” [3]. [2,3] describe some common styles. [2] observes that “an architectural style determines the vocabulary of components and connectors that can be used in instances of that style, together with a set of constraints on how they can be combined". However “the allowable kinds of components and connectors are primary discriminators among styles. Selecting the types of constituent parts does not, however, uniquely identify the style. Control disciplines, data organizations, and the interaction of control and data all affect style distinctions" [3]. 1.2.3 Software Architecture as discipline and research area “ Software architecture is the principled study of the overall structure of software systems, especially the relations among subsystems and components. From its roots in qualitative descriptions of useful system organizations, software architecture has matured to encompass broad explorations of notations, tools, and analysis techniques. Whereas initially the research area interpreted software practice, it now offers concrete guidance for complex software design and development .” [19] According to [8], software architectures became independent subjects of research at beginning of the 90s, developing a specific area inside Software Engineering. Figure 1 is taken by [20] and highlights its origins (“time spans for phases are suggested by the dates of the work mentioned in the corresponding sections, discounting foundational works from the 1960s and 1970s”). Carnegie Mellon University and Software Engineering Institute are two important references for the area. The seminal work by Shaw and Garlan [9] is an initial systematic study of the field. Some other important reports that we have not yet mentioned, with a very important practical impacts are given by [21], [22] and [23]. Finally, a research line regards formal languages for software architectures specification, called Architectural Description Languages (ADL). Through a formal specification it is possible to manage software architectures as formal objects, performing strong analysis and evaluations over them. Shaw and Garlan in [24] and [25] provide a framework for this issue. The Wright language [26] is a significant example, it supports formal specification and verification of components and connector. Other languages like Unicon [27] are implementation-oriented and provide built-in connectors.

Figure 1 ”Maturation of the software architecture field”, from [20]

1.3 Reference Example

The example below will be used as reference in the following. A shop chain has several shops and one central warehouse. Each shop has a local warehouse. The goal is to manage the demand chain. Sold items are recognized at each Point of Sale (POS) via RFID (or, possibly, via code bar or keyboard). The stocks are managed at three levels: shelf (to notify an operator about the need for replenishment), local shop inventory (to require the delivery of goods from central warehouse to local warehouse), global inventory (to plan purchases or production). Shelf operators fill up shelves as soon as the level of a product in a shelf becomes low. When a product level on a shelf becomes low, the need for replenishment must be recognized within a few minutes. Shop managers drive the transfer of products from the central warehouse to the local ones. Products are delivered daily from central to local warehouses. A purchase manager is in charge of planning purchases and generates orders according to central strategies. The purchase manager is in charge of deciding when a specific good must be purchased.