什么是架构模式?
分类
•
An architectural pattern expresses a
fundamental
structural organization schema
for software systems.
It provides a set of predefined subsystems, specifies their responsibilities, and includes rules and
guidelines for organizing the relationships between them
– Buschman et al, “Pattern-Oriented Software Architecture— A System of Patterns””
It provides a set of predefined subsystems, specifies their responsibilities, and includes rules and
guidelines for organizing the relationships between them
– Buschman et al, “Pattern-Oriented Software Architecture— A System of Patterns””
•
一种架构模式表达多个软件系统的一个
基础结
构组织图(方案)
。
它提供一组预定义的子系统, 详述其职责, 以及用于组织其间关系的规则和指南。
它提供一组预定义的子系统, 详述其职责, 以及用于组织其间关系的规则和指南。
分类
•
从混沌到结构:
ü
层(
Layer
)
ü
管道和过滤器(
Pipes and Filters)
ü
黑板(
Blackboard
)
•
分布式系统:
ü
代理(
Broker
)
•
交互式系统:
ü
模型
-
视图
-
控制器(
Model-View-Controller
)
•
适应性系统:
ü
反射(
Reflection
)
ü
微内核(
Microkernel
)
常见的
常见的
•
Layers层
•
Model-view-controller (M-V-C)模型-视图-控制器
•
Pipes and filters管道和过滤器
•
Blackboard黑板