知识卡片
SOA与资源化按不同轴分解
SOA围绕用例动作组织服务操作,如搜索、购买、履约、退货;资源化ROA围绕名词资源组织接口,再用统一动作操作书目和订单。两者是并存的建模策略,适配哪一种取决于业务语义。不能把采用HTTP本身当成资源化,也不能机械把所有领域动作都简化为删除或修改资源。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 宏观架构导论 · 查看原书依据
Building on top of web services, SOA formalized the former. According to SOA, distributed apps are built using coordinating services to fulfill the use case. Each service includes operations, where each operation represents a “verb” in the use case. For example, in the bookshop, the services would be called search, buy, fulfill, and return. A user would search for books and then buy them, which would trigger a fulfillment and, optionally, a return.
参考来源
- 位置:《Software Architecture and Decision-Making》第5章《宏观架构导论》(来源项目:book-sources;源文件:extracted/Software Architecture and Decision-Making Leveraging Leadership, Technology, and Product Management to Build Great Products… (Srinath Perera)/_epub-src/ch05.xhtml)
- 结论依据:原文的定义、比较或例子支持“SOA围绕用例动作组织服务操作,如搜索、购买、履约、退货;资源化ROA围绕名词资源组织接口,再用统一动作操作书目和订单”;正文据此说明用途和边界。
- 原始内容:Building on top of web services, SOA formalized the former. According to SOA, distributed apps are built using coordinating services to fulfill the use case. Each service includes operations, where each operation represents a “verb” in the use case. For example, in the bookshop, the services would be called search, buy, fulfill, and return. A user would search for books and then buy them, which would trigger a fulfillment and, optionally, a return.