Serverless computing is a cloud model where you deploy code and the provider runs it only when something triggers it: an HTTP request, a file upload, a queue message, a schedule. The provider handles the servers, scaling and patching. You pay for the requests and the compute time your code actually uses, and nothing while it sits idle.
The servers still exist. You just never see or manage them. So the serverless computing definition really comes down to two things: no infrastructure to run, and no bill for idle time.
How Serverless Computing Works
A typical serverless setup follows the same short loop:
- An event arrives. A user calls an API, someone uploads a file to storage, a message lands in a queue, or a timer fires.
- The platform starts your function. If no instance is warm, it creates a fresh runtime, loads your code and runs it.
- Your code runs and returns. It does one job, such as resizing an image, writing a record or calling another service, and finishes.
- The platform scales on its own. Ten requests get ten parallel instances. Ten thousand get ten thousand, up to the account’s concurrency limits.
- Idle instances disappear. When traffic stops, capacity scales to zero and billing stops with it.
Scale-to-zero is what separates serverless technology from renting a virtual machine. A VM bills by the hour whether it handles one request or a million. A serverless function bills by the request and the milliseconds of compute, so an internal tool used twice a day costs almost nothing.
Serverless Architecture: The Main Building Blocks
“Serverless” started as a synonym for functions. Today serverless architecture covers several kinds of managed services, and most real applications combine two or three of them.
| Building block | What it does | Examples |
|---|---|---|
| Functions as a Service (FaaS) | Runs short pieces of code in response to events | AWS Lambda, Azure Functions, Google Cloud Run functions |
| Serverless containers | Runs a full container image without managing nodes, still scaling to zero | Google Cloud Run, AWS Fargate, Azure Container Apps |
| Edge functions | Runs code in data centers close to users, with very low startup times | Cloudflare Workers, Vercel Functions |
| Backend as a Service (BaaS) | Managed databases, storage, auth and queues billed by usage | Amazon DynamoDB, Amazon S3, Firebase, Azure Cosmos DB serverless |
| Workflow orchestration | Chains functions into multi-step processes with retries and state | AWS Step Functions, Lambda durable functions, Azure Durable Functions |
Serverless containers are where much of the recent growth sits. In Datadog’s 2023 State of Serverless report, container-based platforms were described as the ecosystem’s main growth driver. The same report found serverless in use at more than 70% of Datadog’s AWS customers, 60% of its Google Cloud customers and almost 50% of its Azure customers.
Serverless Platforms and What They Cost
Every major serverless cloud computing platform bills on two meters, requests and compute, and each has a permanent free tier. The differences only start to matter at scale.
| Platform | Billing model | Free tier (monthly) | Paid rates (US list) |
|---|---|---|---|
| AWS Lambda | Requests + GB-seconds | 1M requests, 400,000 GB-s | USD 0.20 per 1M requests; USD 0.0000166667 per GB-s on x86, about 20% less on Arm |
| Azure Functions (Consumption) | Executions + GB-seconds | 1M executions, 400,000 GB-s | About USD 0.20 per 1M executions; about USD 0.000016 per GB-s |
| Azure Functions (Flex Consumption) | On-demand execution + optional always-ready instances | 250,000 executions, 100,000 GB-s | Usage-based; always-ready instances add a baseline cost |
| Google Cloud Run | Requests + CPU and memory time | Includes 360,000 GB-s of memory | Usage-based, per vCPU-second and GB-second |
| Cloudflare Workers | Requests + CPU milliseconds | Free plan: 100,000 requests per day | USD 5/month minimum with 10M requests and 30M CPU ms included; USD 0.30 per extra 1M requests |
A worked example
AWS uses this case on its own Lambda pricing page. A function gets 3 million requests a month, runs 120 ms each time and has 1,536 MB of memory.
- Compute: 3M × 0.12 s × 1.5 GB = 540,000 GB-s. Minus the 400,000 free GB-s leaves 140,000 GB-s, which costs about USD 2.33.
- Requests: 3M minus 1M free leaves 2M requests at USD 0.20 per million, or USD 0.40.
The total is under USD 3 a month. A VM sized for the same peak would cost more just to sit idle overnight.
The costs that don’t show up on the rate card
Function charges are rarely the biggest line on a serverless bill. Watch for:
- Logging. The Lambda free tier doesn’t cover CloudWatch Logs, and chatty functions can generate more log volume than compute cost.
- Networking. Functions inside a private network often route through NAT gateways or endpoints that bill by the hour and by the gigabyte.
- The services around the function. API gateways, queues, databases and storage each have their own meters.
- Warm capacity. Provisioned concurrency on Lambda or always-ready instances on Azure Flex Consumption remove cold starts but bring back a fixed monthly cost.
Benefits of Serverless Computing
The first benefit is money. Workloads with spiky or unpredictable traffic stop paying for capacity they don’t use, and a function that serves 50 requests on Tuesday can absorb 50,000 during a product launch without anyone adding servers.
The second is time. There’s no OS to patch and no autoscaling group to tune, and functions run across availability zones by default. Teams ship small, independent functions instead of waiting on infrastructure tickets.
For CIOs the time saving usually matters more than the bill. Serverless hands a large share of routine infrastructure work to the provider, and engineers get that time back for product work. It’s also a common landing zone when teams break up older systems as part of legacy system modernization.
Disadvantages and Limits of Serverless
Serverless has real trade-offs. Five come up again and again in production.
Cold starts
When a function hasn’t run recently, the platform has to create a new runtime and load your code before it can respond. That delay is called a cold start. It ranges from a few milliseconds on edge platforms to a second or more for large packages on heavier runtimes such as Java or .NET. For background jobs it rarely matters. For a customer-facing API it can. Common fixes are smaller deployment packages, lighter runtimes, Lambda SnapStart or paying for warm capacity.
Execution limits
Standard Lambda functions stop after 15 minutes. Long-running jobs either need to be split into steps, moved to a workflow service, or run on containers instead. AWS has relaxed this for some cases (more on that below), but synchronous requests still cap at 15 minutes.
Cost at steady high load
Per-request pricing wins when traffic is spiky. When a service runs at high, constant load around the clock, reserved VMs or containers often come out cheaper. Run the numbers before moving a busy, always-on service to functions.
Vendor lock-in
Function code is portable, but the triggers, permissions, event formats and managed services around it are not. Moving a serverless application from AWS to Azure usually means rewriting the integration layer. In the EU, the Data Act’s cloud switching rules make exit planning a more concrete part of vendor selection.
Observability and debugging
A request that passes through an API gateway, three functions and a queue is harder to trace than one hitting a single server. Distributed tracing and structured logging need to be in place before launch, not after the first incident.
What Is Serverless Computing Used For?
Serverless fits best where work arrives in bursts and each task is short and independent. Typical serverless computing examples:
| Use case | How it typically works |
|---|---|
| APIs and web backends | An API gateway routes each HTTP request to a function that reads or writes data |
| File and media processing | An upload to storage triggers a function that resizes images, transcodes video or extracts text |
| Data pipelines and ETL | Functions transform records as they stream in from queues, logs or IoT devices |
| Scheduled jobs | Timers replace cron servers for reports, cleanups and syncs |
| Integrations and webhooks | Functions receive events from SaaS tools and push updates to internal systems |
| AI workflows | Functions call model APIs, chain steps and wait for human approval between them |
It fits less well for latency-critical systems that can’t tolerate cold starts, long-running stateful processes, and heavy, constant workloads such as large databases or always-busy batch clusters.
What Changed in Serverless in 2025 and 2026
AWS and Microsoft spent the last year chipping away at the classic limits of serverless.
- Lambda durable functions (announced December 2025) let developers build multi-step applications and AI workflows inside Lambda itself. A function can checkpoint progress, recover from failures and pause for up to a year, for example to wait for a human approval, without paying for the wait.
- Lambda Managed Instances (also re:Invent 2025) run Lambda functions on EC2 capacity that AWS manages. They target steady, high-throughput workloads where classic per-request pricing gets expensive. In June 2026 they expanded to nearly all commercial AWS Regions.
- Longer and bigger functions. Since September 2026, Lambda Managed Instances support a 90-minute timeout for asynchronous and event-driven invocations, six times the old 15-minute limit. They also allow up to 32 GB of memory, three times standard Lambda.
- Azure Flex Consumption. Microsoft is steering new Azure Functions workloads to Flex Consumption, which adds virtual network integration, configurable instance memory and optional always-ready instances to the pay-per-use model.
Put together, these updates let serverless take on work it used to push to containers: long jobs, stateful workflows and steady high-volume traffic.
When Serverless Fits a Business, and When It Doesn’t
| Choose serverless when | Look at containers or VMs when |
|---|---|
| Traffic is spiky, seasonal or unpredictable | Load is high and flat around the clock |
| Tasks are short and independent | Processes run for hours or hold state in memory |
| The team is small and wants less infrastructure work | You have a platform team and mature Kubernetes tooling |
| Speed to market matters more than unit cost | Every millisecond of latency matters, such as trading or real-time gaming |
| You’re building new event-driven services | You’re lifting an existing monolith with minimal changes |
Many companies end up hybrid, with core systems on containers and serverless functions around them for integrations and bursty jobs. That setup works well. Mixed estates do add technical debt if nobody owns the inventory of functions, so tag every function with an owner and a cost center from day one.
FAQ
Does serverless mean there are no servers?
No. Servers still run your code, but the cloud provider owns, patches and scales them. “Serverless” means you don’t provision or manage servers yourself and you don’t pay for idle capacity.
What is a cold start in serverless computing?
A cold start is the delay when the platform has to create a fresh runtime for a function that hasn’t run recently. It adds anywhere from a few milliseconds to over a second to the first request. Warm capacity, smaller packages and lighter runtimes reduce it.
What is a potential disadvantage of using serverless computing?
The most common ones are cold-start latency, execution time limits (15 minutes for standard Lambda), harder debugging across many small functions, vendor lock-in through provider-specific triggers, and higher costs than reserved servers for constant heavy workloads.
What is serverless computing in AWS?
On AWS, serverless computing centers on AWS Lambda for functions, with services like API Gateway, Step Functions, DynamoDB, S3 and Fargate around it. Lambda bills USD 0.20 per million requests plus compute time, with a free tier of 1 million requests and 400,000 GB-seconds a month.
Is serverless the same as PaaS?
Not quite. With platform as a service you deploy an app that usually runs continuously on instances you size and pay for. Serverless runs code only on demand, scales to zero and bills per request and execution time.
