๐
API Gateway
Development with AWS ServicesFully managed service for creating, publishing, and securing APIs at any scale.
API types
- โธREST API: full feature set (caching, API keys/usage plans, request validation, WAF).
- โธHTTP API: lower latency and cost, simpler, built-in JWT authorizers โ best for simple proxy use cases.
- โธWebSocket API: for persistent, bidirectional client-server connections.
Endpoint types
- โธEdge-optimized: routed through CloudFront, best for geographically distributed clients.
- โธRegional: for clients in the same region, or when you manage your own CDN.
- โธPrivate: only accessible from within a VPC via an interface endpoint.
Traffic management
- โธThrottling: account/stage/method-level rate and burst limits (token bucket algorithm).
- โธCaching: per-stage response cache with configurable TTL, reduces backend calls.
- โธUsage plans + API keys: control and meter per-customer access, often paired with throttling quotas.
Security
- โธLambda authorizers (token or request-based) for custom auth logic.
- โธCognito authorizers to validate user pool JWTs directly.
- โธIAM authorization using SigV4-signed requests for internal/service-to-service calls.
- โธCORS must be explicitly enabled for browser-based cross-origin calls.