Auto-sync: 2026-04-20 00:02
This commit is contained in:
41
wiki/concepts/API-Gateway.md
Normal file
41
wiki/concepts/API-Gateway.md
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
title: "API Gateway"
|
||||
type: concept
|
||||
tags:
|
||||
- AWS
|
||||
- Serverless
|
||||
- API
|
||||
- Gateway
|
||||
date: 2024-09-03
|
||||
---
|
||||
|
||||
## Definition
|
||||
API Gateway 是 AWS 托管服务,用于创建、发布、维护和保护 API。作为 API 的前端入口,将请求路由到后端服务(如 Lambda、EC2),并处理认证、限流、监控等功能。
|
||||
|
||||
## Endpoint Types
|
||||
- **Edge-optimized(边缘优化)**:
|
||||
- 通过 CloudFront CDN 分发
|
||||
- 降低延迟
|
||||
- 适合全球访问
|
||||
|
||||
- **Regional(区域)**:
|
||||
- 同区域部署
|
||||
- 更低延迟
|
||||
- 适合同区域客户端
|
||||
|
||||
- **Private(私有)**:
|
||||
- 仅 VPC 内部访问
|
||||
- 通过 VPC 端点访问
|
||||
- 适合内部服务
|
||||
|
||||
## Key Features
|
||||
- 请求验证:验证 API 密钥、JWT、IAM
|
||||
- 速率限制:防止 API 滥用
|
||||
- 缓存:减少后端调用
|
||||
- 监控:CloudWatch 集成
|
||||
- 自定义域名:绑定自有域名
|
||||
- API 版本管理:v1、v2 版本控制
|
||||
|
||||
## Aliases
|
||||
- Amazon API Gateway
|
||||
- API Gateway
|
||||
Reference in New Issue
Block a user