6 min read
AWS Lambda Doubles Maximum Timeout to 30 Minutes After Eight Years at 15

- Reading
- 6 min
- Code
- 1
AWS raised the Lambda execution limit from 15 to 30 minutes, ending eight years at a fixed ceiling. The change reopens the discussion about when it still makes sense to orchestrate with SQS, Step Functions, or Fargate.
The Timeout Doubled, But It Didn't Start From Zero
AWS increased the maximum execution limit for on-demand Lambda functions from 15 to 30 minutes, according to a report by InfoQ. The new ceiling applies to synchronous, asynchronous, and event source mapping invocations, across all commercial regions (which includes São Paulo), at the usual standard price and without requiring early access requests.
The 15-minute limit had been unchanged since 2018. Before that, Lambda had a 60-second limit when it launched in 2014, which rose to five minutes in 2015. That's eight years at the same ceiling until this change.
Raising the timeout is a per-function setting, not a new feature to enable. Any value above 1,800 seconds is still rejected with a validation error:
aws lambda update-function-configuration \
--function-name my-demo-function \
--timeout 1800Three Forms of Lambda, Three Different Limits
By 2026, Lambda is no longer a single thing. Web Functions keep the 15-minute ceiling. Lambda MicroVMs allow up to eight hours. And in Lambda Managed Instances, synchronous invocations have just gained the same 30 minutes, while asynchronous ones keep the 90 minutes introduced in September 2026.
AWS cites workloads that used to exceed the old 15-minute limit: agentic AI requests that chain model and tool calls, media transcoding, Monte Carlo simulations, and report generation. It's exactly the kind of workload that, in Brazil, used to move away from plain Lambda to become a state machine in Step Functions just to avoid hitting the limit.
Before Raising It, Do the Concurrency Math
According to Tarun Rai Madan, Dan Slusariuc, and Snehil Ameta, authors of AWS's announcement, the first check before raising the timeout isn't about latency, it's about capacity:
Concurrency equals requests per second multiplied by average duration in seconds. At the same request rate, a function that runs for 30 minutes instead of 15 needs twice the concurrency. For example, 1 request per second at 30 minutes each needs 1,800 concurrent executions.
Tarun Rai Madan, Dan Slusariuc, and Snehil Ameta, authors of the AWS Lambda announcement
Accounts here typically operate with the region's default concurrency limit, well below 1,800. Doubling the timeout without reviewing that number takes the function down to throttling before any gain in architectural simplicity.
The Rest of the Stack Didn't Get the Same Boost
The Lambda timeout doubled, but what surrounds it didn't all keep up at the same pace:
- SQS: the queue's visibility timeout needs to be at least six times the function's timeout, meaning three hours for a 30-minute function.
- Kinesis and DynamoDB Streams: each shard processes one batch at a time, so a slow function delays the entire shard, not just its own invocation.
- Amazon MQ, DocumentDB, and Kafka: mappings created before November 19, 2026 remain locked at 14 minutes.
- NAT gateway: still drops idle connections after 350 seconds.
- Initialization phase (Init): keeps the 10-second limit, regardless of the total timeout.
The Test That Found a Hole in the SQS Rule
Wibo van der Sluis, an independent AWS practitioner, tested the six-times rule in the eu-west-1 region. He raised a function to 1,800 seconds behind a queue with a 90-minute visibility timeout, then lowered the queue to 60 seconds. Both changes were accepted with the mapping already active; a new mapping from the same queue, however, was rejected.
So the check exists, but only at creation. One more thing the test showed: at creation, Lambda compared the queue with the function timeout itself, not with six times it. I did not test where exactly that line sits, so treat the six times as guidance you enforce yourself.
Wibo van der Sluis, independent AWS practitioner
Van der Sluis also notes that an asynchronous function that fails by timeout three times in a row has already run for 90 minutes before the event reaches the dead-letter queue. His conclusion is direct: 30 minutes is the wrong remedy for slow code hidden behind an API.
The Community Is Divided
Luc van Donkersgoed, principal engineer at NS and AWS Serverless Hero, summed up the discomfort felt by part of the community:
Hell froze over. AWS Lambda now supports 30-minute timeouts. I am not sure how I feel about this.
Luc van Donkersgoed, principal engineer at NS and AWS Serverless Hero
Magnus Eriksson, architect and former AWS employee, points out that the cost per CPU-second still weighs against this use:
[Lambda] is anyhow quite expensive per CPU second compared to EC2.
Magnus Eriksson, architect and former AWS employee
Matthew Bonig, AWS DevTools Hero and co-author of The CDK Book, projects the trend:
Eventually it'll be 8 hours, and then nobody will be able to understand when to use it vs. MicroVMs.
Matthew Bonig, AWS DevTools Hero and co-author of The CDK Book
Lambda, Fargate, or Step Functions?
On Reddit, the discussion around the announcement went in two directions. The top-voted comment welcomed the change for avoiding the need to migrate one-hour batch jobs to Fargate or ECS; the reply right below pushed back, saying Fargate is beautifully simple for that same case.
A third comment outlined where the change actually helps: a 30-minute execution still bills for the full duration at the configured memory, so the cost per invocation needs to be factored in before moving batch work to Lambda. The handler needs to be idempotent and have a dead-letter queue, because a failure or timeout in the middle of a long execution can leave partial work behind. For multi-step flows, long jobs, or anything requiring clear state and retries, Step Functions with Fargate or ECS still tends to be cleaner.
Cloud Run and Azure Functions Also Enter the Equation
Joseph Emison, CTO of Branch Insurance, reads AWS's move as an acknowledgment that Google's Cloud Run is Lambda's most uncomfortable competitor. Cloud Run allows 60 minutes per request. Azure Functions, on the Flex Consumption and Premium plans, imposes no maximum at all, with a 60-minute grace period during scale-in. AWS hasn't said whether the Lambda limit will rise again.
What Changes for Those Building in Brazil
The change already applies in sa-east-1, the São Paulo region, with no access request needed. This means pipelines that today rely on Step Functions just to work around the 15-minute ceiling, such as heavy report generation, video transcoding, or a chain of AI agent calls, may once again fit into a single Lambda function.
It's worth doing this migration with your own account's numbers in hand, not in the abstract: review the account's concurrency limit in the region, recalculate the visibility timeout of any SQS queue in front of the function, and check whether any Kafka, Amazon MQ, or DocumentDB mapping was created before November 19, 2026, since those remained locked at 14 minutes. None of these checks is automatic, and van der Sluis's test shows that AWS itself only validates the six-times rule at the moment the mapping is created, not afterward.
Translated from the Brazilian Portuguese original · Read the original
Rust 1.100 stabilizes the never type after ten years and five failed attempts
Version 1.100.0, released on November 12, 2026, stabilizes the `!` type and its alias with `Infallible`, in addition to stabilizing the core of allocator_api and giving Cargo an opt-in feature against attacks via malicious crates.






