知识卡片
模块与运行组件多对多
源码模块与运行组件不存在固定一一对应:同一模块可产生大量副本,许多模块也可链接成一个可执行组件。书中客户端服务器例子只有两类模块,却运行十个客户端和一个服务器,共11个组件。静态分解图适合分工,运行图才能直接支持流量、瓶颈和并发分析。
结构图:
flowchart LR
A[客户端源码模块] --> B[10个客户端运行实例]
C[服务端源码模块] --> D[1个服务端运行实例]
B -->|10条运行连接| D
相关:[[模块结构表达实现职责]]。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 什么是软件架构 · 查看原书依据
In this system, two modules must be implemented: the client software and the server software. The image on the right shows a C&C view of the same system. At runtime, ten clients are running and accessing the server. Thus, this little system has two modules and 11 components (and ten connectors).
参考来源
- 位置:《Software Architecture in Practice, 4th Edition》第1章《什么是软件架构》(来源项目:book-sources;源文件:extracted/Software Architecture in Practice, 4th Edition/_epub-src/ch01.html)
- 结论依据:原文的定义、机制或比较支持“源码模块与运行组件不存在固定一一对应:同一模块可产生大量副本,许多模块也可链接成一个可执行组件”;正文保留其条件与取舍。
- 原始内容:In this system, two modules must be implemented: the client software and the server software. The image on the right shows a C&C view of the same system. At runtime, ten clients are running and accessing the server. Thus, this little system has two modules and 11 components (and ten connectors).