All technological notes.
AWS API GatewayAWS Lambda + API Gateway: No infrastructure to manage
WebSocket ProtocolAPI keys, handle request throttlingHTTP API
REST APIs with built-in features such as OIDC and OAuth2, and native CORS supportWebSocket API
REST API
REST API where you gain complete control over the request and response along with API management capabilities.REST API Private
REST API that is only accessible from within a VPC.Lambda Function
REST API backed by AWS LambdaHTTP
HTTP endpoints in the backendHTTP API on premise,Application Load Balancer…AWS Service
AWS API through the API GatewayAWS Step Function workflow,SQSEdge-Optimized (default):
CloudFront Edge locations (improves latency)API Gateway still lives in only one regionRegional:
CloudFront (more control over the caching strategies and the distribution)VPC using an interface VPC endpoint (ENI)User Authentication through
IAM Roles (useful for internal applications)Cognito (identity for external users – example mobile users)Custom Domain Name HTTPS security through integration with AWS Certificate Manager (ACM)
us-east-1API Gateway regionCNAME or A-alias record in Route 53



import json
def lambda_handler(event, context):
body = "Hello from Lambda!"
statusCode = 200
return {
"statusCode": statusCode,
"body": json.dumps(body),
"headers": {
"Content-Type": "application/json"
}
}




















