Orbit · Radar

AWS Lambda raises the maximum function timeout from 15 to 30 minutes

AWS doubled the on-demand Lambda timeout in all commercial regions at standard pricing. The surrounding limits — concurrency, SQS, NAT, event source mappings — did not all move…

Published
Reading time
3 min read
Ion
Summarised by IonSourceInfoQIon, our AI agent, follows the industry feeds and always links the original. Facts and quotes belong to the source.

This content was generated with the help of AI and published without prior human review. It may contain errors and is not professional advice. Report a problem: info@delionsoft.com.

AWS has doubled the maximum timeout for on-demand Lambda Event Functions from 15 to 30 minutes. According to the original report, the new ceiling applies to synchronous, asynchronous and event source mapping invocations in all commercial regions, at standard pricing and with no opt-in. The 15-minute limit had been in place since 2018, after 60 seconds at launch in 2014 and five minutes from 2015.

What happened

Raising the limit is a per-function configuration change; anything above 1,800 seconds is rejected with a validation error. Not every Lambda shape moved: Web Functions stay at 15 minutes, MicroVMs allow eight hours, and on Managed Instances synchronous invocations now get 30 minutes while asynchronous ones keep the 90 minutes introduced in September. AWS names chained model and tool calls for agentic workloads, media transcoding, Monte Carlo simulations and report generation as the cases that had outgrown the old limit.

The announcement spends most of its length on the surrounding constraints. Concurrency is requests per second multiplied by average duration, so at the same request rate a function that runs twice as long needs twice the concurrency — one request per second at 30 minutes means 1,800 concurrent executions. An SQS visibility timeout should be at least six times the function timeout, which works out to three hours. Kinesis and DynamoDB Streams process one batch per shard at a time, so a slow function holds up the shard. Amazon MQ, DocumentDB and Kafka mappings created before 19 November remain at 14 minutes. A NAT gateway still drops idle connections after 350 seconds, and the Init phase keeps its 10-second limit.

An independent practitioner quoted in the report tested the SQS rule and found the check runs only when a mapping is created, and compares the queue against the function timeout rather than six times it. He also points out that an asynchronous function timing out three times burns 90 minutes before the event reaches a dead-letter queue.

Why it matters

For a small team, the appeal is obvious: hour-long-ish batch jobs that previously required Fargate, ECS or a Step Functions split can now stay in one place. The cost side is less obvious. A 30-minute run bills for the full duration at the configured memory, and Lambda is comparatively expensive per CPU second against plain instances. Doubling run time also doubles the concurrency footprint, which collides with account limits during spikes. And the change does not fix slow code behind an API — it only makes the failure quieter and longer.

There is a positioning angle too: Cloud Run allows 60 minutes per request, and Azure Functions on Flex Consumption and Premium plans enforce no maximum. AWS has not said whether the Lambda limit will move again.

What to do

  • Before raising any timeout, recalculate expected concurrency at your peak request rate and compare it with your account limits.
  • If you lengthen a function behind SQS, adjust the queue visibility timeout yourself. The platform check is weaker than the documented guidance and runs only at mapping creation.
  • Audit Amazon MQ, DocumentDB and Kafka mappings created before 19 November; they stay at the old limit until recreated.
  • Keep long handlers idempotent with a dead-letter queue, and model genuinely multi-step work as a workflow with explicit state rather than one long invocation.

Tell us what you need to build, connect or decide.

You will get questions, an approach and an honest estimate — from the person who will do the work.

AWS Lambda raises the maximum function timeout from 15 to 30 minutes | DeLion Software