Amazon API Gateway — Create, Publish & Manage APIs
Amazon API Gateway is a fully managed service that makes it easy for developers to create, publish, maintain, monitor, and secure APIs at any scale. It handles all the tasks involved in accepting and processing up to hundreds of thousands of concurrent API calls.
A fully managed service for creating, deploying, and managing APIs at scale.
Amazon API Gateway acts as the "front door" for applications to access data, business logic, or functionality from your backend services. It supports RESTful APIs, HTTP APIs, and WebSocket APIs, making it suitable for a wide range of use cases from web applications to real-time data streaming.
API Gateway integrates seamlessly with AWS Lambda for serverless backends, with AWS services for authentication (Cognito), monitoring (CloudWatch), and security (WAF), and can serve as a central hub for your microservices architecture.
From client request to backend response.
Client Request
HTTP/WebSocket from web or mobile app
API Gateway
Authenticate, validate & route request
Backend Service
Lambda, EC2, HTTP, or AWS Service
Response
Return data, error, or WebSocket message
API Gateway supports the full API lifecycle: define your API resources and methods in the console or via OpenAPI/Swagger specs, deploy to stages (dev, staging, prod), version with canary deployments, monitor with CloudWatch dashboards, and roll back when needed.
What makes API Gateway essential for modern API architectures.
API Gateway scales automatically to handle from a few requests to hundreds of thousands of concurrent API calls with zero provisioning.
Supports IAM roles, Cognito user pools, Lambda authorizers, API keys, and WAF integration for comprehensive API security.
Protect your backend by throttling requests, setting usage plans per API key, and applying burst limits to prevent abuse.
Built-in integration with CloudWatch metrics, logs, and AWS X-Ray for distributed tracing across your API requests.
Gradually shift traffic between API versions with canary release deployments. Monitor error rates before full rollout.
Build real-time applications like chat apps, live dashboards, and gaming backends with persistent WebSocket connections.
A simple REST API endpoint that proxies requests to a Lambda function.
service: my-api
provider:
name: aws
runtime: nodejs18.x
functions:
hello:
handler: handler.hello
events:
- httpApi:
path: /
method: get