Your AWS Lambda Functions Can Now Run Twice as Long
TL;DR: AWS has doubled the maximum execution time for its Lambda functions from 15 to 30 minutes. This long-awaited update enables developers to run more complex, long-running tasks like data processing and machine learning directly within Lambda.
Key facts
- Category
- Infrastructure
- Impact
- High
- Published
- Source
- InfoQ
Full summary
AWS has doubled the maximum timeout for Lambda functions to 30 minutes, enabling longer-running tasks like data processing and machine learning.
Amazon Web Services has significantly increased the maximum execution time for its popular Lambda service, as first reported by InfoQ. The AWS Lambda timeout has been doubled from 15 minutes to 30 minutes, a limit that had been in place since 2018. This update applies to on-demand Lambda functions across all commercial AWS regions and is available immediately without any new pricing or required opt-in. The change addresses a long-standing request from the developer community, removing a key architectural barrier and unlocking new potential for serverless applications. For years, the 15-minute ceiling forced developers to design complex workarounds for tasks that might occasionally exceed that limit, often involving more complicated services like AWS Step Functions or moving workloads to container platforms.
Technically, the change is straightforward: developers can now configure any Lambda function's timeout value to any duration up to 30 minutes. However, AWS notes a few important considerations for teams looking to leverage the extended runtime. Because a function can now hold a concurrent execution slot for twice as long, this could potentially double the concurrency required to handle the same rate of incoming requests. Teams should monitor their concurrency limits to avoid throttling. Additionally, integrations with other services may need adjustments. For example, if a Lambda function processes messages from an SQS queue, the queue's visibility timeout must be configured to be longer than the function's timeout to prevent another function from picking up and reprocessing the same message. AWS also specified that existing Kafka event source mappings must be recreated to take advantage of the new maximum.
The previous 15-minute limit was a defining characteristic of Lambda, reinforcing its identity as a platform for short-lived, event-driven tasks. This update signals a strategic evolution in how AWS positions its flagship serverless offering. It acknowledges that a significant number of valuable workloads, particularly in data processing, ETL (Extract, Transform, Load), and machine learning, fall into a “medium-duration” category. These tasks are often too long for the old 15-minute window but too short or sporadic to justify the cost and operational overhead of a dedicated container or virtual machine. By extending the AWS Lambda timeout, Amazon is making the service a more direct and viable competitor to its own container service, AWS Fargate, for a broader range of use cases. It also keeps Lambda competitive with similar offerings from Google Cloud and Microsoft Azure, which have also been increasing their function runtimes.
For CTOs and engineering leaders, this update provides an opportunity to simplify their cloud architecture and potentially reduce costs. Workloads that were previously forced onto more complex infrastructure can now be re-evaluated. Simple batch processing, data validation jobs, report generation, and machine learning inference tasks that take between 15 and 30 minutes are now prime candidates for migration to Lambda. This can lead to a more streamlined, event-driven architecture with lower operational overhead. However, as practitioners noted, the change also prompts a healthy debate about what workloads truly belong on Lambda. While the 30-minute window is a major improvement, it does not turn Lambda into a solution for all long-running processes. Applications requiring persistent state or runtimes exceeding half an hour are still better suited for platforms like Fargate, EC2, or Kubernetes. The key takeaway is that the line has moved, giving architects a powerful new degree of flexibility.
Why it matters
For developers and architects, this update removes a significant architectural constraint. It makes Lambda a viable option for tasks previously requiring more complex solutions like AWS Fargate or EC2, simplifying infrastructure for medium-duration data processing, ETL jobs, and machine learning inference.
Business impact
This change can lower operational costs and complexity by allowing businesses to consolidate more workloads onto a single serverless platform. Companies can now use Lambda for simpler ETL and data tasks, potentially reducing the need for dedicated, always-on container or virtual machine infrastructure.
Tags
Related on Notifire
Related stories
Primary source: InfoQ
