Lambda's 90-Minute Timeout: Serverless for Big Jobs

Alps Wang

Alps Wang

Sep 19, 2026 · 1 views

Bridging Serverless and Long-Running Tasks

The introduction of a 90-minute timeout for AWS Lambda Managed Instances is a monumental step forward, effectively dismantling one of the most significant barriers to adopting serverless for a wider array of applications. Previously, developers had to contort their architectures, employing complex workarounds like step functions, breaking down tasks into smaller chunks, or resorting to containerized solutions for workloads exceeding the 15-minute limit. This change directly addresses common use cases in data processing, AI inference, media manipulation, and batch jobs, making Lambda a more viable and attractive option for these scenarios. The ability to leverage Lambda Managed Instances for steady-state workloads, with per-instance pricing and potentially lower costs than ephemeral function invocations for continuous tasks, further solidifies its position as a versatile compute service.

However, this expansion is not without its caveats. The article rightly highlights the increased complexity around managing network connections, temporary credentials, and, crucially, idempotency. As Yan Cui points out, this blurs the line between serverless and traditional server deployments, which some might see as a dilution of the serverless ethos. More importantly, the warning about idempotency and the increased window for retries and duplicate deliveries is paramount. While Powertools for AWS Lambda can assist, developers must meticulously design their applications to handle these scenarios gracefully. The concern raised by user Dull_Caterpillar_642 about the economic viability of Lambda for genuinely long-running, computationally intensive tasks is also valid. For processes that truly require 90 minutes of continuous, heavy computation, services like AWS Batch or ECS might still offer a more cost-effective and predictable pricing model, especially when considering the potential for unexpected costs with prolonged Lambda executions. The decision to use Lambda for these longer jobs will require careful cost-benefit analysis and robust error handling strategies.

Key Points

  • AWS Lambda now supports up to a 90-minute timeout for functions running on Lambda Managed Instances, a significant increase from the previous 15-minute limit.
  • This change expands Lambda's suitability for long-running workloads such as media processing, financial calculations, data processing, ETL, AI inference, and large file transfers.
  • Developers must pay extra attention to network connection longevity, temporary credential validity, and designing for idempotency to handle potential retries and duplicate executions safely.
  • The introduction blurs the lines between serverless functions and traditional server deployments, offering new architectural possibilities.
  • While beneficial for many, concerns remain about the cost-effectiveness of Lambda for extremely long-running, computationally intensive tasks, with services like AWS Batch or ECS potentially being better suited.

Article Image


📖 Source: AWS Lambda Pushes Serverless Toward Long-Running Workloads

Related Articles

Comments (0)

No comments yet. Be the first to comment!