知识卡片
API协议按消费者约束选
API 协议选择应先看公开范围、调用方设备与网络限制,以及资源关系和所需操作。RPC 偏方法调用,REST 借 HTTP 表达资源,GraphQL 允许客户端选择关联字段;没有一种协议凭名称就能同时满足易用性、性能和治理要求。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
原书出处
参考来源
- 位置:《Microservice APIs》附录 A《Types of web APIs and protocols》(源文件:_epub-src/OEBPS/Text/A.htm)
- 结论依据:原文在附录开头列出公开范围、消费者类型和资源结构作为选型条件,并逐节比较协议。
- 原始内容:The factors that will condition our choice of API protocol include these: Whether the API is public or private Type of API consumer: small devices, mobile applications, browsers, or other microservices The capabilities and