How to fail with Serverless
summary
Examines concrete AWS failure behavior and remedies: Lambda asynchronous invocations sit in an AWS-managed queue with up to two retries and a configurable max event age, stream-based invocations can retry batches thousands of times (batches split by bisect-batch-on-function-error to find poison messages), and SQS polling ties to concurrency with visibility timeout guidance (recommend ~6x). Recommends on-failure destinations over simple DLQs, use SQS buffering plus throttled Lambdas, idempotency, and a DynamoDB/ElastiCache circuit breaker.
AI-written summary · about
