Menu
InfoQ Architecture·September 19, 2026

AWS Lambda Extends Timeout to 90 Minutes, Reshaping Serverless Workloads

AWS Lambda has increased its maximum execution timeout to 90 minutes for functions on Lambda Managed Instances, significantly expanding the scope of serverless applications. This change impacts architectural decisions for long-running tasks previously requiring workarounds, but also introduces new considerations for idempotency, connection management, and cost optimization. It blurs the line between traditional server management and serverless compute, opening up new use cases while necessitating careful design to avoid common pitfalls.

Read original on InfoQ Architecture

The Evolution of Lambda's Timeout

Initially, AWS Lambda functions were limited to 5 minutes, then extended to 15 minutes. This new 90-minute limit (six times the previous maximum) for Lambda Managed Instances drastically changes how developers can approach long-running, event-driven, or batch processing workloads. This update specifically targets instances where functions maintain a steady state and can serve multiple requests, rather than traditional synchronous, short-lived invocations. The increased duration enables Lambda to support use cases such as extensive media processing, complex financial calculations, large-scale data ETL, AI inference, and significant file transfers, which previously necessitated more complex, often non-serverless, architectural patterns.

Architectural Considerations for Longer-Running Functions

While the extended timeout simplifies many deployments by removing the need for 'duct tape' solutions (like step functions chaining multiple short lambdas), it introduces critical design challenges. Developers must pay extra attention to maintaining network connections, ensuring temporary credentials remain valid for the entire execution, and designing for safe retries and duplicate execution. The article explicitly warns about the increased window for retries and duplicate deliveries, making idempotency a paramount concern for robust system design. Tools like Powertools for AWS Lambda are recommended to implement idempotency in function code, guaranteeing consistent results even if operations are executed multiple times.

💡

Idempotency in Long-Running Lambdas

When designing longer-running Lambda functions, especially those interacting with external systems (databases, payment gateways, message queues), ensure all operations are idempotent. This means that executing the same operation multiple times, with the same parameters, should produce the exact same effect as executing it once. This is crucial for handling retries and potential duplicate invocations, which become more likely with longer execution windows.

Trade-offs and Alternatives

The community response highlights a fundamental tension: while convenient, a 90-minute Lambda execution can blur the lines between serverless and traditional server-based computing. Critics suggest that for truly long-running processes where the code isn't constantly performing meaningful work (i.e., it's waiting on I/O), the economics of Lambda might not be favorable. In such scenarios, alternatives like AWS ECS Tasks or AWS Batch might still be more cost-effective and appropriate, offering greater control over the underlying compute environment. The decision to use a long-running Lambda should involve a careful cost-benefit analysis, weighing the operational simplicity of serverless against potential cost implications for idle time and the need for greater control over the execution environment.

New Paradigms and Use Cases

This change further positions Lambda to support 'agentic workflows' and extends its capability for steady-state workloads. Lambda now offers distinct models: short-lived functions for event-driven tasks (15 min timeout) and MicroVMs (up to 8 hours) for user- or AI-generated code, with Lambda Managed Instances bridging the gap for longer, continuous execution leveraging EC2-based pricing without direct infrastructure management. This architectural evolution allows for more sophisticated serverless applications that manage state and process data over extended periods.

AWS LambdaServerlessTimeoutLong-running workloadsIdempotencyCloud ArchitectureDistributed ComputingEvent-Driven

Comments

Loading comments...