Concepts

AWS API Gateway

AWS managed service for creating, publishing, and managing REST, HTTP, and WebSocket APIs that act as entry points to Lambda functions and other backend services.

seed#aws#api-gateway#serverless#rest#http#websocket

What it is

AWS API Gateway is a fully managed service that makes it easy to create APIs as entry points to applications. It handles authentication, authorization, throttling, caching, and monitoring — letting Lambda focus only on business logic.

API types

TypeCharacteristicsCost
HTTP APISimple, low latency, Lambda integrationCheaper
REST APIFull features, transformations, validationMore expensive
WebSocket APIReal-time bidirectional connectionsPer message

Key features

FeatureFunctionExample
StagesEnvironments with independent configurationdev, staging, prod
AuthorizersAuthentication and authorizationLambda, Cognito, IAM
ThrottlingRequests per second limits10,000 rps per stage
CachingCached responsesReduce latency and cost on stable endpoints
CORSCross-origin configurationAllow requests from frontend
Custom domainsOwn domains with SSLapi.example.com with ACM

Typical pattern

Client → API Gateway → Lambda → DynamoDB
                    ↓
             Authorizer (JWT/Cognito)

Why it matters

API Gateway eliminates the need to build and operate your own HTTP entry layer. With native Lambda integration, Cognito/IAM authorization, and automatic throttling, it enables exposing serverless APIs in production without managing servers.

References

Concepts