Key takeaway
- AWS serverless in 2027: Lambda limits, INIT billing, durable functions, Managed Instances, security and cost, with a decision table for architects.
AWS serverless computing is the group of Amazon Web Services that run your code, containers, workflows and data stores without you provisioning or patching servers. AWS Lambda is the core service for event-driven code, and it works with Amazon API Gateway, Amazon EventBridge, AWS Step Functions, Amazon SQS, Amazon DynamoDB and AWS Fargate to form a complete application platform. You pay for requests, execution time or consumed capacity, and AWS handles scaling and availability.
This guide takes an AWS-specific view. For the equivalent on Microsoft's cloud, read our guide to Azure serverless computing. Here we focus on what has changed in Lambda since 2025 (INIT billing, new runtimes, durable functions and Managed Instances), the limits that decide architecture, security, cost and the point at which Lambda stops being the right tool.
What is AWS serverless computing and how does the architecture fit together?
Serverless does not mean there are no servers. It means AWS owns provisioning, scaling, patching and availability, and your teams own the application logic and the permissions around it. A typical AWS serverless application is event-driven: a request or event arrives, a Lambda function runs, and the result is stored, queued or passed to the next step.
For enterprise architects, the useful question is not "should we go serverless?" but "which AWS service owns each part of the workload?". The usual building blocks are an entry point (Amazon API Gateway or an event source), compute (Lambda or Fargate), orchestration (Step Functions), messaging (SQS, SNS, EventBridge) and state (DynamoDB, Amazon S3, Aurora Serverless). If you are new to the model, our introduction to serverless computing covers the basics, and our guide to building serverless applications on AWS walks through a build.
What has changed in AWS serverless since this guide was first written?
Several facts in older AWS serverless guides, including earlier versions of this one, are now out of date. The table lists the changes that affect architecture and operating decisions.
| Item | What changed | What to do |
| Init phase billing | From 1 August 2025 AWS bills the INIT phase for on-demand invocations of zip-packaged functions on managed runtimes. AWS expects minimal impact for most users because cold starts occur in under 1% of invocations. | Check Init Duration in CloudWatch REPORT lines and trim start-up code. |
| Older runtimes | AWS lists Node.js 20 (deprecated 30 April 2026), Python 3.9 (15 December 2025), Python 3.10 (31 October 2026) and .NET 8 (10 November 2026) among deprecated runtimes. After deprecation AWS may stop patching, and functions lose technical support, but they keep running. | Move to supported runtimes such as Node.js 24, Python 3.13 or 3.14, Java 21 or 25 and .NET 10. |
| Amazon Linux 2 | Amazon Linux 2 reached end of life on 30 June 2026. Runtimes built on it, such as Python 3.11 and the AL2 Java runtimes, receive limited patches until their own deprecation dates. | Prefer Amazon Linux 2023 based runtimes. |
| Preview runtimes | Node.js 26 and Python 3.15 are in public preview and are not covered by the Lambda SLA or technical support. | Keep them out of production. |
| Durable functions | Lambda durable functions let a function run multi-step workflows for up to one year using checkpoint and replay. Waits do not incur compute charges. | Evaluate them for long approvals and AI workflows before adding Step Functions. |
| Lambda Managed Instances | Lambda functions can run on current-generation EC2 instances in your account. Pricing is EC2 pricing plus a 15% management fee. | Consider for high-volume, predictable workloads. |
| Aurora Serverless scale to zero | Aurora Serverless can scale to 0 ACUs and pause automatically when idle. Storage is still charged, and resume typically takes about 15 seconds. | Use for dev, test and intermittent workloads, and set client timeouts above 15 seconds. |
Which AWS serverless service fits which workload?
The table maps common workloads to the AWS service that owns them. Each row uses AWS's own documentation for its description.
| Service | What it does | When it fits | Watch for |
| AWS Lambda | Runs event-driven code in managed runtimes, billed on requests and duration. | Event handlers, API back ends, file and stream processing. | 15-minute limit and cold starts. |
| AWS Fargate | A serverless, pay-as-you-go compute engine for containers. You do not manage servers or capacity planning. | Containerised services, long-running tasks, code that does not fit Lambda packaging. | Check AWS Fargate pricing for the billing unit before costing always-on services. |
| Lambda Managed Instances | Runs Lambda functions on EC2 instances in your account, with AWS managing the instance lifecycle. | High-volume, predictable workloads and workloads needing instance control. | Instance-based cost, so low-traffic functions lose scale-to-zero. |
| AWS Step Functions | Standard workflows run for up to one year with exactly-once execution. Express workflows run for up to five minutes. | Auditable, long-running workflows (Standard); high-volume event processing (Express). | Workflow type cannot be changed after creation. |
| Amazon EventBridge | Event buses route events to targets, Pipes link one source to one target, and Scheduler runs timed tasks. | Decoupled event-driven integration. | Plan event schemas and ownership early. |
| Amazon SQS and SNS | SQS is a hosted queue; SNS delivers messages from publishers to subscribers, including Lambda functions and SQS queues. | Buffering, fan-out and decoupling. | Standard SQS queues deliver at least once, so make handlers idempotent. |
| Amazon DynamoDB | A serverless NoSQL database that scales down to zero throughput cost and has no cold starts. | Key-based access at any scale. | Design access patterns first. |
| Aurora Serverless | On-demand autoscaling Aurora, with per-second usage measurement and optional pause at 0 ACUs. | Relational workloads with variable demand. | Open connections and RDS Proxy prevent auto-pause. |
| Amazon Athena | Serverless SQL queries directly on data in Amazon S3, paid per query. | Ad hoc analytics on data lakes. | Cost follows the data each query scans, so partition your data. |
What are the AWS Lambda limits that shape design?
Limits decide whether Lambda is the right home for a workload. The values below come from the AWS Lambda quotas page. New accounts can start with lower concurrency and memory quotas, and AWS raises them based on usage, so confirm your values in the Service Quotas console.
| Limit | Default or maximum | Design impact |
| Concurrent executions | 1,000 per AWS Region by default; can be increased | Isolate noisy workloads with reserved concurrency, or use separate accounts. |
| Function timeout | 900 seconds (15 minutes) | Longer jobs need Fargate, Step Functions or durable functions. |
| Memory | 128 MB to 10,240 MB; about one vCPU at 1,769 MB | Memory also sets CPU, so tune it for cost and speed. |
| Ephemeral storage (/tmp) | 512 MB to 10,240 MB | Stream large files instead of copying them. |
| Payload | 6 MB synchronous, 1 MB asynchronous | Pass references to objects in S3, not the data. |
| Package size | 50 MB zipped upload, 250 MB unzipped, 10 GB container image | Use container images for large dependencies. |
The old claim that a single account is limited to 1,000 concurrent executions across everything is only partly right. 1,000 is the default Regional quota and can be raised. Lambda also keeps 100 units of concurrency for functions that do not reserve any, and reserved concurrency for one function is unavailable to others. Provisioned concurrency counts toward the same quota.
How do cold starts work and how do you reduce them?
Lambda runs each invocation in an execution environment with Init, Invoke and Shutdown phases. A cold start is the time to download the code and set up a new environment before the handler runs. AWS states that cold starts typically occur in under 1% of invocations and vary from under 100 ms to over 1 second. Since 1 August 2025 that initialisation time is billed for on-demand zip functions on managed runtimes.
Provisioned concurrency pre-initialises environments, so cold-start latency is not possible for that capacity. It costs extra and cannot exceed reserved concurrency.
Static initialisation belongs outside the handler, so SDK clients and connections are created once per environment. Import only the modules you need.
SnapStart runs initialisation when you publish a version and resumes new environments from a cached snapshot. Resume hooks must complete within the 10-second limit.
How should you secure AWS serverless applications?
Security in serverless is mostly identity. Each Lambda function runs with an IAM role, and AWS delivers temporary credentials of that role to the function, so there are no long-lived keys to distribute. AWS's IAM guidance is to require workloads to use temporary credentials, grant only the permissions needed for a task, use IAM Access Analyzer policy generation to refine policies from CloudTrail activity, and require MFA (ideally passkeys or security keys) for any IAM user or root user you still need. Safeguard root user credentials, and keep them out of day-to-day deployment. Our overview of identity and access management covers the wider governance model.
For APIs on Amazon API Gateway REST APIs, a Lambda authorizer can control access. A REQUEST authorizer reads headers, query strings and context variables, and AWS recommends it. A TOKEN authorizer reads a bearer token such as a JWT or OAuth token. Either returns an IAM policy and principal identifier, and API Gateway can cache that policy. For HTTP APIs, check the API Gateway HTTP API documentation for the equivalent.
How do you release and roll back Lambda changes safely?
Publish each change as a numbered version and send traffic through an alias, so a release becomes a pointer move rather than an overwrite. When you publish a version, Lambda creates an immutable snapshot of the function's code and configuration.
- Shift traffic in steps: a weighted alias can split traffic between two published versions, and AWS CodeDeploy with AWS SAM can move traffic to the new version gradually and roll back if needed.
- Plan for failed events: for asynchronous invocations, Lambda by default retries a failed run two more times, then discards the event unless you configure a dead-letter queue or an on-failure destination.
- Keep the previous version: rolling back means pointing the alias at the older version, so keep it until the new one has proved itself in production.
What does AWS serverless cost, and where do bills grow?
Lambda bills on requests and duration. AWS lists $0.20 per million requests and, for x86 in US East (N. Virginia), $0.0000166667 per GB-second, with a monthly free tier of one million requests and 400,000 GB-seconds. Provisioned concurrency adds a separate capacity charge, and the free tier does not apply to functions that use it. Lambda Managed Instances use EC2 pricing plus a 15% management fee, and EC2 discounts apply only to the underlying compute. Step Functions Standard workflows are priced by state transitions and Express workflows by executions, duration and memory. Always confirm current regional rates on the AWS pricing pages.
In our delivery work, cost reviews on AWS serverless estates have followed a consistent pattern. Teams split the bill into pay-per-use serverless services, storage, and infrastructure that is not serverless, such as OpenSearch, ECS, load balancers and VPC components, and they usually find that the always-on infrastructure drives the baseline. Where Lambda spend needs reducing, the effective step has been to prioritise the handful of most frequently invoked functions and, for example, replace AppSync API calls with direct SDK calls where that cuts call costs.
What do real AWS serverless projects teach?
Three patterns recur in the client and internal work our architects describe, with client details removed.
Event routing. A common ingestion design routes objects landing in S3 to Lambda, then to separate batch and real-time SQS queues, with a tier lookup deciding which path an event takes. Queues absorb bursts so the functions behind them stay inside concurrency limits.
Networking. Lambda reaching a database inside a private network is a frequent blocker. In one engagement, access to S3 logs worked before a database cluster IP was reachable from Lambda. Test VPC connectivity to every data store in the first sprint.
Scale of file handling. Reading large files directly inside Lambda may not scale. Hand large objects to a queue, a stream or a container task.
AI agents are a growing consumer of this estate. Lambda functions are often exposed as tools that an agent calls, and that is where governance matters. ElixirClaw is an agentic OS platform to build, orchestrate and govern AI agents and automation workflows while keeping humans in control, and the Audit Agent assembles the decision history, the policy version in effect and the approval trail for decisions made through the platform.
How does AWS serverless compare with Azure and Google Cloud?
The three clouds offer similar building blocks with different packaging. The table compares AWS with Azure, using each vendor's documentation. For the Azure detail see our Azure serverless guide, and for Google Cloud see our GCP serverless computing guide.
| Area | AWS | Azure |
| Function hosting | One Lambda model, with Managed Instances as an EC2-backed option. | Several plans. Flex Consumption is recommended for new apps, and Linux Consumption retires on 30 September 2028. |
| Long-running orchestration | Step Functions Standard and Lambda durable functions, both up to one year. | Durable Functions and the Durable Task framework. |
| Event routing | Amazon EventBridge. | Azure Event Grid. |
| Serverless containers | AWS Fargate. | Azure Container Apps. |
The old version of this table claimed Lambda had no stateful function support and that its function count was unlimited. Durable functions now cover stateful workflows, and we have left out the function-count claim because we could not verify it against AWS documentation.
When is AWS serverless the wrong choice?
Jobs longer than 15 minutes. Use Fargate, Step Functions or durable functions.
Steady, high-volume traffic. Per-request billing can exceed instance pricing. Compare Lambda Managed Instances and Fargate.
Latency-critical paths. Cold starts are rare but real, so budget for provisioned concurrency.
Heavy local debugging needs. AWS SAM, an open-source infrastructure-as-code framework, lets you test Lambda functions locally and simulate API Gateway, but distributed flows still need cloud testing.
Strict instance or placement control. Managed Instances or containers give more control.
In what order should you adopt AWS serverless?
Inventory runtimes. Find functions on deprecated or Amazon Linux 2 runtimes and plan upgrades.
Define identity. Give each function its own least-privilege role.
Choose the workload split. Lambda for events, Fargate for containers, Step Functions or durable functions for long flows.
Define as code. Use AWS SAM or another infrastructure-as-code tool, with gradual rollouts through CodeDeploy.
Set guardrails. Apply reserved concurrency, alarms and budgets, and review against the AWS Well-Architected Serverless Applications Lens.
Review cost quarterly. Re-check memory settings, INIT duration and always-on infrastructure.
Teams planning the wider move can also read our cloud modernisation strategy guide.
To map one decision your agents should make on top of your serverless estate, and the context and policy it depends on, book a Context Workshop. See what happens in the workshop.
What should you plan for in 2027?
The AWS Lambda runtimes page lists several runtime dates that fall in 2027, so schedule upgrades now.
- 31 March 2027: Ruby 3.3 is deprecated. 30 May 2027: Node.js 22 is deprecated.
- 30 June 2027: the Amazon Linux 2 based runtimes Python 3.11, Java 17, Java 11 and Java 8 (java8.al2) are deprecated.
- 29 July 2027 and 31 August 2027: for runtimes already deprecated, such as Python 3.10, .NET 8 and Node.js 20, AWS blocks creating functions from 29 July and updating them from 31 August.
FAQs about AWS serverless computing
What is AWS serverless computing?
AWS serverless computing is the set of Amazon Web Services that run code, containers, workflows, messaging and data stores without you provisioning or patching servers. AWS Lambda runs event-driven code, AWS Fargate runs containers, AWS Step Functions orchestrates workflows, Amazon EventBridge routes events and Amazon DynamoDB stores data. You pay for requests, execution time or consumed capacity rather than for idle servers.
What are the main limits of AWS Lambda?
By default Lambda allows 1,000 concurrent executions per AWS Region, which can be raised. A function can run for up to 900 seconds (15 minutes), use 128 MB to 10,240 MB of memory and carry a synchronous payload of 6 MB. A zip package is limited to 250 MB unzipped, and a container image can be up to 10 GB. Check the Service Quotas console for the values on your own account.
How do you reduce Lambda cold starts?
AWS states that cold starts typically occur in under 1% of invocations and range from under 100 ms to over 1 second. To reduce them, use provisioned concurrency to pre-initialise execution environments, move connection and client set-up outside the handler, import only the libraries you need, and consider Lambda SnapStart, which takes a snapshot of the initialised environment when you publish a version.
When should you not use AWS Lambda?
Lambda is a weaker fit for work that runs longer than 15 minutes, for steady high-volume workloads where you want predictable instance-based cost, and for workloads that need fine control of instances. In those cases consider AWS Fargate, Lambda Managed Instances, Step Functions or Lambda durable functions, depending on whether the constraint is duration, cost or control.
Can AWS serverless run long-running workflows?
Yes. Standard workflows in AWS Step Functions can run for up to one year, and AWS Lambda durable functions can run multi-step workflows for up to one year using checkpoints and replay. Express workflows in Step Functions are limited to five minutes and suit high-volume event processing.
What changed in AWS Lambda billing for cold starts?
From 1 August 2025 AWS bills the initialisation (INIT) phase for on-demand invocations of zip-packaged functions on managed runtimes. AWS expects minimal impact for most users because cold starts are rare, but teams with heavy initialisation code or frequent cold starts should check Init Duration in their CloudWatch logs.
Next Steps for Migrating to AWS Serverless Architecture
Talk to our experts about implementing Serverless Computing on AWS, how industries and different departments use Agentic Workflows and Decision Intelligence to become decision-centric. Utilize AI to automate and optimize IT support and operations, improving efficiency and responsiveness.
Follow XenonStack on LinkedIn: XenonStack on LinkedIn for new guides on agentic AI, data and platform engineering.
Explore the XenonStack platform family: ElixirData · ElixirClaw · ElixirHub · NexaStack · MetaSecure · Neural AI · AgentGRC · AgentSRE · AgentAnalyst · AgentInstruct · AgentRAI · AgentScrum · AgentSearch · AgentForce · AI Aviator · SAIF Aviator · CohortIQ · XenonStack AI · XenonStack UAE