AWS Lambda Doubles Its Timeout to 30 Minutes After Eight Years at 15
AWS has raised the maximum timeout of on-demand Lambda Event Functions from 15 to 30 minutes in all commercial regions, with no opt-in and no new pricing. The limit had stood since 2018. AWS's post lists the costs: twice the concurrency at the same request rate, three-hour SQS visibility timeouts, and Kafka mappings that must be recreated. Practitioners welcome it and ask what belongs elsewhere.…
AWS has doubled the maximum execution time for its Lambda Functions from 15 minutes to 30 minutes, a change that has been in effect since August 2017. This modification affects both synchronous and asynchronous invocations across all commercial regions, including standard pricing. The previous maximum of 15 minutes had been in place since Lambda's launch in 2014, with a 5-minute limit from 2015 before the 60-second threshold.
This adjustment comes as AWS caters to workloads such as agentic AI requests, media transcoding, and Monte Carlo simulations that have outgrown the original 15-minute limit.
Before increasing the timeout, users should consider the concurrency requirements, which double when the execution time is extended from 15 to 30 minutes. For instance, a function running for 30 minutes instead of 15 minutes would require twice the concurrent executions to handle the same request rate. Additionally, the visibility timeout of an SQS queue must be at least six times the function's timeout, meaning a queue with a 30-minute function timeout should have a minimum visibility timeout of three hours.
Not all Lambda mappings were updated automatically; some, particularly those created before November 19, remained at the 14-minute timeout. A NAT gateway's idle connection timeout of 350 seconds remains unchanged. During testing, Wibo van der Sluis discovered that Lambda accepted a function timeout of 1,800 seconds when paired with an SQS queue that had a 90-minute visibility timeout, but refused to accept a new mapping from the same queue after lowering the queue's visibility timeout to 60 seconds.
AWS emphasizes that the change applies solely to synchronous invocations of Lambda MicroVMs, while Web Functions maintain their 15-minute timeout. Longer-running tasks are recommended to be handled through AWS Step Functions, which can integrate with Fargate or ECS for improved manageability and reliability. Dismissal of the change is not universal, with some users appreciating the extended timeout for batch processing jobs, while others advocate for the continued use of Fargate or ECS for such tasks.
Rewritten by urgent.news; may contain errors — check the original.
Source: infoq.com