API Gateway REST vs HTTP API vs Lambda function URL?
IntermediateConceptContainers and Serverless
Answer
REST API: richest feature set (API keys, usage plans, request validation, caching, WAF, resource policies, private endpoints), higher price. HTTP API: cheaper (about 70% less), lower latency, JWT authorizers, fewer features. Function URL: a built-in HTTPS endpoint on a Lambda with IAM or no auth, no routing, throttling or WAF directly.
Default to HTTP API; choose REST when you need usage plans, caching, WAF or private APIs; use function URLs for simple webhooks.
More on Containers and Serverless
ECS vs EKS vs Fargate: what is the relationship?BeginnerWhat are ECS task definitions, tasks and services?BeginnerWhat are ECS capacity providers?IntermediateWhat is the difference between the ECS task role and the task execution role?IntermediateHow does `awsvpc` network mode work in ECS?IntermediateWhat deployment strategies does ECS support?Advanced