第一周学习总结
什么是架构
架构是有关系统整体和组件的抽象描述

架构由架构元素和元素间的关系组成,每个系统都有架构,架构最后由架构文档来体现,架构文档由各种架构视图聚合而成,不同的架构视图体现不同的面,不同的关注点。架构文档是给系统相关方看的,不同的相关方有不同的关注点,因此架构文档也就就有不同版本。
什么是架构师
系统中做架构工作的人就是架构师
架构师职责
编写架构文档 开发架构框架
重构软件代码 设计系统架构
技术选型,解决技术难题
优化系统性能
模块分解和架构重构
保障安全和高可用
大数据应用
技术创新
沟通管理
。。。。
4+1 视图

逻辑视图 开发视图 过程视图 物理视图 场景视图
要想清晰的描述系统的架构,不能光靠某一个视图。就像要想知道一个房子的结构,光看外形是不可能全部知道的,得看里面。不同架构视图就是从不同的角度来看系统架构
什么是模型
模型,一个系统完整的抽象。模型体现了对系统的理解

计算机建模,完成领域问题到计算机模型的映射
UML
UML, 即 unified modeling language,统一建模语言,uml 是用来描述系统架构的,用来交流的
静态图
描述类,对象和数据结构以及他们之间的关系
用例图(use case diagram): 从用系统的人的角度,描述系统功能

类图(class diagram):从工程师的角度,描述系统是由哪些具体的类构成

组件图(component diagram), 描述系统模块分解的结果,有哪些模块,以及模块间的关系

部署图(deployment diagram), 描述系统的部署情况

包图(package diagram): 体现大系统拆成小系统的思路
对象图(object diagram)
静态模型间关系

动态图
描述 执行流程 和 状态变换
时序图(sequence diagram):描述对象间动态交互情况,着重体现消息传递的时间顺序

活动图(activity diagram): 描述系统各种活动的执行顺序

状态图(state diagram):描述特定对象的状态和状态转移的事件

协作图(collaboration diagam):描述对象间的静态链接
动态图中元素间关系

通过做设计,可以使得心中的想法逐渐清晰起来,对系统整体有一个清晰的认识和把控
评论