当前位置:网站首页>[system architecture] - five styles of software architecture
[system architecture] - five styles of software architecture
2022-06-23 12:28:00 【Hua Weiyun】

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

framework 4+1 View

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

The first step The result of the treatment is The next step Input content of 【 Data driven 】
| 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

It should be well understood , The program uses the most .
Substyle :
The sub style and layered architecture style are specially explained :
Independent component style
Architecture decoupling 
| 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


Warehouse style
Like databases 、 Data center, etc 
other
Closed loop control style

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

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 .
边栏推荐
- 机器学习系列5:距离空间(1)
- The list of open source summer winners has been publicized, and the field of basic software has become a hot application this year
- Qt5 knowledge: QT drawing graph
- [no title] 2022 pressure pipeline patrol inspection and maintenance test questions and online simulation test
- Halcon knowledge: binocular_ Discrimination knowledge
- @Dark horse fans, haven't you received this "high temperature subsidy"?
- LinkedList 5-141. Circular linked list
- Ecological Wanli database and Westone completed compatible certification to jointly build a network security ecosystem
- 【基础知识】~ 数据位宽转换器
- Halcon knowledge: dyn_ Usage of threshold (scratch detection)
猜你喜欢

群晖万兆网络配置与测试

Getting started with redis - Chapter 2 - data structures and objects - linked lists

年薪中位数超30万,南大AI专业首届毕业生薪资曝光

“梦想童行” 2022年广汽本田儿童道路安全公益行走进东北

利用XtraDiagram.DiagramControl进行流程图形的绘制和控制

Halcon knowledge: dyn_ Usage of threshold (scratch detection)

HMS Core 视频编辑服务开放模板能力,助力用户一键Get同款酷炫视频

Deveco device tool helps openharmony device development

M & A and capital increase may be expected to start Neusoft's new momentum?

『忘了再学』Shell流程控制 — 39、特殊流程控制语句
随机推荐
Halcon principle: one dimensional function_ 1D type [1]
M & A and capital increase may be expected to start Neusoft's new momentum?
Simulation questions and answers of the latest national fire-fighting facility operators (primary fire-fighting facility operators) in 2022
ROS察微【51】:如何将里程计和 IMU 与 robots_localization 融合
数据中台稳定性的“四高” | StartDT Tech Lab 18
<Sicily>1001. Rails
With 32 qubits! Rigetti computing enters the UK quantum computing market
C#学习(高级课程)Day15——异常处理和命名空间
sql增加表记录的重复问题。
09 -- 回文对
Operation of 2022 tool fitter (elementary) examination practice question simulation examination platform
[introduction to UVM== > episode_7] ~ sequence, sequence item, sequencer, driver
go-zero微服务实战系列(六、缓存一致性保证)
Where is the safest and most formal way to open an account at present?
二维激光SLAM( 使用Laser Scan Matcher )
2022工具钳工(初级)考试练习题模拟考试平台操作
How to uninstall and reinstall gazebo
"Dream of children's travel" in 2022, GAC Honda children's road safety charity travel entered the Northeast
HMS core video editing service has the ability to open templates, helping users get the same cool video with one click
Linked list 5 - 234 Palindrome linked list