An Amazon Simple Queue Service (Amazon SQS) queue serves as an event source for an AWS Lambda function In the SQS queue, each item corresponds to a video file that the Lambda function must convert to a smaller resolution The Lambda function is timing out on longer video files, but the Lambda function's timeout is already configured to its maximum value
What should a developer do to avoid the timeouts without additional code changes'?
Visibility Timeout: When an SQS message is processed by a consumer (here, the Lambda function), it's temporarily hidden from other consumers. Visibility timeout controls this duration.
How It Helps:
Increase the visibility timeout beyond the maximum processing time your Lambda might typically take for long videos.
This prevents the message from reappearing in the queue while Lambda is still working, avoiding premature timeouts.
William
1 months agoMitsue
1 months agoJeannetta
1 months agoRoxane
1 months agoSusana
1 months agoGearldine
17 days agoClaribel
18 days agoCherelle
20 days agoShenika
29 days agoNobuko
1 months agoJaleesa
24 days agoBeata
1 months agoJuliana
1 months agoNikita
2 months ago