知识卡片
入口方案按需求选最简
入口流量不必默认上 API 网关。单一端点的简单路由可用代理或负载均衡;认证、限流、API 管理等横切要求增多时,网关更合适。选型要列出现有需求、已知近期需求和组织既有入口约束,再选择满足要求的最简方案。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
- · 先按职责选择入口
原书出处 · 1 处
- · 查看原书依据
Always use the simplest solution for your requirements, with an eye to the immediate future and known requirements. If you have advanced cross-functional requirements, an API gateway is typically the best choice. If your organization is an enterprise, an API gateway that supports API Management (APIM) features is recommended. Always perform due diligence within your organization for existing mandates, solutions, and components.
参考来源
- 位置:《Mastering API Architecture》第3章《API Gateways: Ingress Traffic Management》之《Guideline: Proxy, Load Balancer, or API Gateway》(源文件:_epub-src/OEBPS/ch03.xhtml)
- 结论依据:原文 ADR 指南按简单路由、横切要求、管理功能及组织约束讨论三类入口方案,并建议采用满足需求的最简方案。
- 原始内容:Always use the simplest solution for your requirements, with an eye to the immediate future and known requirements. If you have advanced cross-functional requirements, an API gateway is typically the best choice. If your organization is an enterprise, an API gateway that supports API Management (APIM) features is recommended. Always perform due diligence within your organization for existing mandates, solutions, and components.