← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 1973.aw.1

领域服务承载跨对象计算

理解等级:中级

无法自然归属某个聚合或值对象的业务计算,可放进无状态领域服务。例如响应期限依赖工单优先级、部门SLA和客服班次,需要读取多处数据统一计算。领域服务是承载业务逻辑的对象,与部署层面的微服务无关,也不授权在一个事务内修改多个聚合。

相关:[[聚合划定事务边界]]。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 应对复杂业务逻辑 · 查看原书依据

      A domain service is a stateless object that implements the business logic. In the vast majority of cases, such logic orchestrates calls to various components of the system to perform some calculation or analysis. Let’s go back to the example of the ticket aggregate. Recall that the assigned agent has a limited time frame in

    参考来源

    - 位置:《Learning Domain-Driven Design》第6章《应对复杂业务逻辑》(来源项目:book-sources;源文件:extracted/Learning Domain-Driven Design/_epub-src/OEBPS/ch06.html) - 结论依据:原文围绕本卡所述机制给出定义、适用条件及相关取舍,以下摘录为直接依据。 - 原始内容:A domain service is a stateless object that implements the business logic. In the vast majority of cases, such logic orchestrates calls to various components of the system to perform some calculation or analysis. Let’s go back to the example of the ticket aggregate. Recall that the assigned agent has a limited time frame in