Interview Prep/AWS/Containers and Serverless

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.

aws All AWS questions Roadmap: EKS, ECS & serverless on AWS

More on Containers and Serverless