What are Lambda's invocation models?
IntermediateConceptContainers and Serverless
Answer
- Synchronous (API Gateway, ALB, SDK
RequestResponse): caller waits and handles errors. - Asynchronous (S3, SNS, EventBridge): Lambda queues the event, retries twice on failure by default, and can send failures to a DLQ or on-failure destination.
- Poll-based event source mappings (SQS, Kinesis, DynamoDB Streams, Kafka): Lambda polls and invokes in batches, with retry behavior depending on the source.
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