知识卡片

普通读书笔记卡 · 3469.d

单一职责对应业务边界

理解等级:中级

单一职责原则用于微服务时,要求一个服务聚焦于一项业务能力或一个子域,而不是把多个无关流程塞进同一边界。业务能力与子域是两种寻找边界的视角;最终仍需用数据归属和服务耦合检验划分是否合适。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    原书出处

    参考来源

    - 位置:《Microservice APIs》第 3 章《Designing microservices》(源文件:_epub-src/OEBPS/Text/03.htm) - 结论依据:原文将 SRP 定义为组件承担少量且最好一项职责,并明确映射到围绕单一业务能力或子域设计服务。 - 原始内容:The SRP states that we must design components with few responsibilities, and ideally with only one responsibility. When applied to the microservices architecture design, this means we should strive for the design of services around a single business capability or subdomain.