知识卡片
以组件构建服务
组件是拥有明确角色、职责及操作集合的应用构件,常对应包或目录。基于组件的分解先重构出清晰组件,再分组成粗粒度领域服务,而非逐类直接变成微服务。这样服务边界从领域组合中浮现,能减少重复共享代码并支持受控渐进迁移。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 选择架构分解方法 · 查看原书依据
Here we define a component as a building block of the application that has a well-defined role and responsibility in the system and a well-defined set of operations. Components in most applications are manifested through namespaces or directory structures and are implemented through component files (or source files).
参考来源
- 位置:《Software Architecture: The Hard Parts》第4章《选择架构分解方法》(来源项目:book-sources;源文件:extracted/Software Architecture The Hard Parts Modern Trade-Off Analyses for Distributed Architectures (Neal Ford, Mark Richards, Pramod Sadalage etc.)/_epub-src/OEBPS/ch04.xhtml)
- 结论依据:原文的定义、比较或案例支持“组件是拥有明确角色、职责及操作集合的应用构件,常对应包或目录”;正文据此解释其用途与适用边界。
- 原始内容:Here we define a component as a building block of the application that has a well-defined role and responsibility in the system and a well-defined set of operations. Components in most applications are manifested through namespaces or directory structures and are implemented through component files (or source files).