知识卡片
归并共同领域功能
多个组件若业务上下文不同但完成的领域功能相同,可归并公共逻辑减少未来重复服务;如工单、账单、调查审计都写动作和用户到审计表。领域共享是部分业务流程共用,日志、监控和安全等基础设施共享则服务所有流程。公共逻辑也可成为共享库,不必一律远程服务化。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 基于组件的分解模式 · 查看原书依据
Shared domain functionality is distinguished from shared infrastructure functionality in that domain functionality is part of the business processing logic of an application (such as notification, data formatting, and data validation) and is common to only some processes, whereas infrastructure functionality is operational in nature (such as logging, metrics gathering, and security) and is common to all processes.
参考来源
- 位置:《Software Architecture: The Hard Parts》第5章《基于组件的分解模式》(来源项目: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/ch05.xhtml)
- 结论依据:原文的定义、比较或案例支持“多个组件若业务上下文不同但完成的领域功能相同,可归并公共逻辑减少未来重复服务;如工单、账单、调查审计都写动作和用户到审计表”;正文据此解释其用途与适用边界。
- 原始内容:Shared domain functionality is distinguished from shared infrastructure functionality in that domain functionality is part of the business processing logic of an application (such as notification, data formatting, and data validation) and is common to only some processes, whereas infrastructure functionality is operational in nature (such as logging, metrics gathering, and security) and is common to all processes.