Skip to content
Engineering

AWS Lambda Extends Timeout to 90 Minutes for Managed Instances

AWS Lambda Managed Instances now support up to 90-minute function timeouts, expanding use cases for serverless applications.

Topic
Engineering
Reading time
5 min
Length
1,015 words
Published
Sep 20, 2026
11:16 pm IST
In this article
  1. Understanding the Change
  2. Practical Implications
  3. How to Implement the Extended Timeout
  4. Limitations and Considerations

AWS Lambda has taken a significant leap in extending the capabilities of serverless computing by allowing functions to run for up to 90 minutes on Lambda Managed Instances. Previously, the execution time was capped at 15 minutes, which often led developers to find creative workarounds for handling longer-running workloads. This change, as reported by InfoQ, promises to simplify operations for many use cases traditionally constrained by the previous limit.

Understanding the Change

With the increase from a 15-minute to a 90-minute timeout for AWS Lambda Managed Instances, several application domains can benefit significantly. These include media processing, financial calculations, data processing, ETL processes, AI inference, and web scraping or large file transfers. Previously, these tasks required splitting into smaller components or using alternative architectures, complicating development and increasing the potential for failure points.

For developers, this means the potential to consolidate workloads into a single Lambda function without needing to architect around the time constraints. However, it's crucial to note that this extended timeout only applies to Lambda Managed Instances and not to traditional synchronous requests, which remain at their current limits.

Practical Implications

With the extended timeout, developers need to pay close attention to certain aspects of their implementation:

  • Network Connections: Ensure that network connections are stable and can persist for the entire runtime of the function. This might involve re-establishing connections or managing keep-alives effectively. In the context of a 90-minute runtime, it's important to handle potential network timeouts and ensure that any necessary reconnections are managed smoothly.
  • Temporary Credentials: Make sure that any temporary credentials used by the function are valid for the whole duration of its execution. This involves setting up credential refresh mechanisms if your function depends on AWS IAM roles or other temporary credentials.
  • Idempotency: Since AWS Lambda does not guarantee exactly-once processing, the potential for retries means that your functions should be idempotent. This means designing them so that repeated executions result in the same outcome. Using AWS Lambda Powertools can help implement this by providing utilities for managing state and ensuring operations are safely repeatable.

Rajesh Pandey, a principal engineer at AWS, highlights that this change can simplify deployments by removing the need for the "duct tape" solutions that were previously in place to handle longer execution times. This change will likely resonate well with developers who have been anticipating this feature for a long time.

How to Implement the Extended Timeout

If you're considering using the new 90-minute timeout in your Lambda functions, here are some steps you can follow to adapt your existing setup:

  1. Review Existing Workloads: Identify any current Lambda functions that are split or orchestrated to bypass the 15-minute limit. Evaluate whether they can be consolidated into a single function with the new timeout. This might involve analyzing the workflow to ensure that it benefits from longer execution times without unnecessary complexity.
  2. Update Timeout Settings: For Lambda Managed Instances, update the timeout setting in your function configuration to the new maximum, where applicable. This might involve updating your deployment scripts or infrastructure as code (IaC) configurations. Ensure that you have tested these changes in a staging environment to validate the new configuration.
  3. Test for Idempotency: Ensure your functions are idempotent to handle potential retries safely. Tools like Powertools for AWS Lambda can assist in implementing idempotency in your function code. Testing should include scenarios where the function is executed multiple times to confirm that the outcomes are consistent.
  4. Monitor Network and Credential Management: Implement robust network handling and credential management to maintain stability over longer execution periods. This includes setting up monitoring solutions to alert you to any connection or credential issues that may arise during execution.
// Example: Updating a Lambda function with the new timeout
const aws = require('aws-sdk');
const lambda = new aws.Lambda();

const updateFunctionTimeout = async (functionName, timeout) => {
  try {
    const params = {
      FunctionName: functionName,
      Timeout: timeout // Set this to 5400 seconds for 90 minutes
    };
    await lambda.updateFunctionConfiguration(params).promise();
    console.log(`Updated ${functionName} with timeout of ${timeout} seconds`);
  } catch (error) {
    console.error('Error updating function timeout:', error);
  }
};

updateFunctionTimeout('myLambdaFunction', 5400);

Limitations and Considerations

Despite the advantages, the extended timeout does not come without its caveats. Here are some considerations:

  • Cost Implications: Longer execution times might increase costs, especially if the function is not actively processing data for the entire duration. Evaluate the cost-effectiveness compared to alternative solutions like ECS Tasks or AWS Batch. It's important to conduct a cost analysis to determine if the longer runtime is financially viable for your specific workloads.
  • Performance: The economics and performance of Lambda may not always align with tasks that require long idle times. Ensure that your workload justifies a continuous 90-minute runtime. If the function spends significant time waiting for external events or processing, consider alternative architectures that better suit your performance needs.
  • Regional Availability: The 90-minute timeout is only available in regions where Lambda Managed Instances are supported. Verify availability in your deployment region. This ensures that your application can benefit from the extended timeout without encountering deployment issues.
  • Alternative Architectures: For some workloads, using AWS services designed for long-running processes might still be more appropriate, depending on the specific requirements and constraints. Consider services like AWS Step Functions, which can orchestrate longer workflows with less complexity.

In my experience, while the extended timeout can simplify certain workflows, it requires a careful reassessment of your application's architecture and cost implications. It's essential to balance between the ease of using Lambda Managed Instances and the potential increase in execution costs or complexity.

For developers in India and globally, this change provides an opportunity to revisit existing architectures and potentially simplify them. Yet, as with any substantial change, it's crucial to weigh the benefits against the potential costs and choose the most suitable architecture for your needs.

As you consider adopting this feature, remember to evaluate your use cases thoroughly and explore whether Lambda Managed Instances align with your application's requirements. For those interested in more on serverless and cloud-based solutions, our posts on building scalable genomic data queries on AWS and cloud-native approaches for healthcare may provide additional insights.

Sources

AWS Lambda Pushes Serverless Toward Long-Running Workloads

Every claim above was checked against this source before publishing. The analysis, the code and the opinions are mine.

Frequently asked

What is the new AWS Lambda timeout limit?

AWS Lambda Managed Instances now support a 90-minute timeout, increased from the previous 15-minute limit.

Does the 90-minute timeout apply to all Lambda functions?

No, the 90-minute timeout only applies to Lambda Managed Instances, not traditional synchronous requests.

What are the key considerations for using the 90-minute timeout?

Ensure network stability, credential validity, and idempotency for retries, and consider cost implications for long-running tasks.

Deepak Kumar

Written by

Deepak Kumar

Sr Software Engineer at India Today Group | Aaj Tak · MERN Stack · Generative AI

I run my own products on AWS and have carried the architecture decisions far enough to see the bill. I write here about what those systems actually do once real traffic hits them.

Message me