Files
nexus/wiki/concepts/API-Gateway.md
2026-04-20 00:02:56 +08:00

41 lines
957 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
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