知识卡片

普通读书笔记卡 · 3209

API优先围绕消费者设计

理解等级:中级

API 优先设计先理解移动应用、其他服务或外部客户等消费者要完成的任务,再决定服务对外提供什么能力和交互方式。只围绕单个服务的内部功能设计接口,容易得到难以复用的端点。先写文档只是可能采用的手段,消费者视角才是这个方法的核心。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • · 查看原书依据

      Most developers have built services that focus on a single function without considering the broader API reuse from a consumer perspective. API-First design is an approach where developers and architects consider the functionality of their service and design an API in a consumer-centric manner.

    参考来源

    - 位置:《Mastering API Architecture》导言《Introduction》之《The Architecture Journey》(源文件:_epub-src/OEBPS/introduction01.xhtml) - 结论依据:原文对比只关注单一服务功能的做法与从消费者视角设计 API,并列举移动应用、其他服务和外部客户三类消费者。 - 原始内容:Most developers have built services that focus on a single function without considering the broader API reuse from a consumer perspective. API-First design is an approach where developers and architects consider the functionality of their service and design an API in a consumer-centric manner.