当前位置:网站首页>[system architecture] - five styles of software architecture

[system architecture] - five styles of software architecture

2022-06-23 12:28:00 Hua Weiyun

image.png

The concept of software architecture

Software architecture = Software architecture , Architecture design is the allocation of requirements , Assign responsibility for meeting requirements to components .

The nature of Architecture

1、 Software architecture provides a platform for software systems structure 、 High level abstraction of behaviors and properties
2、 The software architecture style is specific to the application field idiomatic paradigm , Architecture definition A vocabulary and a set of constraints .

The role of Architecture

1、 Software architecture is Means of communication between project stakeholders
2、 Software architecture is Transitive and reusable models , By studying software architecture, it is possible to predict the quality of software
3、 Software architecture makes it easier to change reasoning and control , Contribute to step-by-step prototype design , It can be used as the basis of training

Architecture development history

 Insert picture description here

framework 4+1 View

 Insert picture description here

Software architecture style

  • Architecture style reflects the common structure and semantic features of many systems in the field , And guide how to effectively organize each component into a complete system
  • The architectural style defines a glossary of terms used to describe the system and a set of rules that guide building the system
Five architectural styles Substyle
Data flow style The batch 、 The Conduit - filter
call / Return to style The main program / Subroutines 、 object-oriented 、 hierarchy
Independent component style Process of communication 、 Event driven systems ( Implicit call )
Virtual machine style Interpreter 、 The rules system
Warehouse style Database system 、 Blackboard system 、 Hypertext system

Data flow style

 Insert picture description here
The first step The result of the treatment is The next step Input content of 【 Data driven 】
 Insert picture description here

advantage shortcoming example
1、 loose coupling 【 High cohesion - Low coupling 】
2、 Good reusability 、 Maintainability
3、 Extensibility 【 Standard interface adaptation 】
4、 Good concealment
5、 Support parallel
1、 Poor interactivity
2、 High complexity
3、 Poor performance ( Each filter needs to parse and synthesize data )
Traditional compilers
Network message processing

call / Return to style

 Insert picture description here
It should be well understood , The program uses the most .

Substyle :
 Insert picture description here

The sub style and layered architecture style are specially explained : Insert picture description here

Independent component style

Architecture decoupling
 Insert picture description here

advantage shortcoming characteristic
1、 loose coupling
2、 Good reusability 、 Modifiability and extensibility
1、 Components relinquish control over system calculations . When a component triggers an event , It is uncertain whether other components will respond . Even if you know which components the event registers , There is no guarantee of the order in which these procedures are called
2、 The problem of data exchange
3、 The semantics of the process must depend on the context constraints of the triggered event
The system consists of several subsystems and becomes a whole ; The system consists of a unified goal ; There are master and slave subsystems ; Each subsystem has its own event collection and processing mechanism

Virtual machine style

 Insert picture description here
 Insert picture description here

Warehouse style

Like databases 、 Data center, etc
 Insert picture description here

other

Closed loop control style

 Insert picture description here

  • Suitable for embedded systems , Used to solve simple closed-loop control problems
  • Classic application : Air conditioning temperature control 、 Cruise control

C2 style

 Insert picture description here
C2 Architectural ground rules :

  • Members and connections have a top and a bottom
  • The top of the component is connected to the bottom of the connector , The bottom of the component is connected to the top of the connector , Direct connection between components is not allowed
  • A connector can be connected with any number of other components and connectors
  • When two connectors are connected directly , Must go from the bottom of one to the top of the other

The above is the software architecture 5 Big style , Pay attention to me , To share more knowledge with you .

原网站

版权声明
本文为[Hua Weiyun]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/174/202206231204594722.html