Short Answer Serverless computing is a way of running software in the cloud where the provider looks after the servers for you. Your code sleeps until something happens, such as a customer placing an order. Then the cloud starts it, runs it and stops it again. So you mainly pay for the time your code actually runs, not for servers waiting idle.
What is Serverless Computing?
Every app needs a computer to run on. In most offices, that computer is a server: a powerful machine that stays switched on all day, waiting for work. Someone has to buy it or rent it, install updates, watch it and add more machines when traffic grows.
In cloud computing, serverless computing removes that job from your team. The servers still exist, but they belong to the cloud provider, such as AWS or Microsoft Azure. The provider decides where your code runs, adds more power when many people use it and switches everything off when no one does. In simple terms, you write the code and the cloud does the rest.
Think of it like a taxi instead of a company car. With a company car, you pay for the car, the driver and the parking, even on days no one travels. With a taxi, you call one only when you need a ride, and you pay only for that trip. Serverless computing works the same way for software.
Key Words to Know
- Function: a small piece of code that does one job, for example sending a welcome email.
- Event: something that happens, such as a file upload, a button click or a new order.
- Trigger: the rule that links an event to a function, so the event starts the code.
- Autoscaling: the cloud adds or removes computing power on its own as demand goes up or down.
- Scale to zero: when no one uses the app, nothing runs, so no running time adds to the bill.
- Cold start: a short delay when the cloud has to start your code from sleep before it can answer.
- API: a doorway that lets one program ask another program for data or an action.
- Patching: installing security fixes and updates on a computer.
How Does Serverless Computing Work?
Serverless computing is event-driven. In other words, nothing happens until an event arrives. Most serverless apps follow the same simple cycle.
- Your code waits: your team uploads the code to the cloud. No server runs it yet, and it uses no computing power.
- An event arrives: for example, a customer uploads a photo, or a clock reaches 2 a.m.
- The cloud starts the code: the provider finds spare computing power and loads your code within moments.
- The code runs: it does its one job, such as saving the order or resizing the photo.
- The cloud scales it: if a thousand customers act at once, the cloud runs many copies side by side.
- The code stops: when the work ends, the cloud shuts it down. You pay for the work done, not for idle hours.

An Example From a Jaipur Online Store
For example, a small handicraft shop in Jaipur sells block-print bedsheets online. Most days bring a few dozen orders. However, during Diwali sales, orders jump to thousands in one evening. With its own server, the shop would need a large machine all year just for those few busy days.
Instead, the shop uses serverless computing. Each new order is an event. It triggers one function that saves the order, a second that emails the customer and a third that alerts the warehouse. On a quiet Tuesday, these functions run only a few times. On Diwali night, the cloud runs thousands of copies at once. As a result, the shop never buys extra servers, and its two-person IT team never has to update one.
What is Serverless Computing Used For?
Serverless computing suits short jobs that start because something happened. Common examples in Indian offices include:
- Resizing uploaded photos: a property website makes small and large copies of every photo an agent uploads.
- Sending order and payment emails: a new order triggers a confirmation message to the buyer within seconds.
- Chatbot replies: each customer message starts a function that finds the answer and replies.
- Nightly reports: at midnight, a scheduled function collects the day’s sales and emails a summary to managers.
- App backends: a mobile app calls an API, and a function behind it reads or saves data.
- Data clean-up: when a branch uploads a spreadsheet, a function checks it and loads it into the main database.
In each case, the work is short and comes at uneven times. Keeping a server running just to wait for it would waste money.
Serverless Computing vs FaaS
People often mix up the two terms. Function as a Service (FaaS) is one kind of serverless service. It runs small functions when events arrive. AWS Lambda and Azure Functions are FaaS services.
Serverless computing is the wider idea. Besides functions, it also covers databases, file storage and message queues, which hold tasks in line until a program is ready. All of these grow and shrink on their own, with no servers for you to manage. Some people call these ready-made building blocks backend as a service. So every FaaS service is serverless, but not every serverless service is FaaS.
Serverless vs Containers and Virtual Machines
A virtual machine (VM) is a software copy of a whole computer, with its own operating system, that runs on a real server. You choose its size, keep it updated and pay for it while it runs, even when it sits idle. A container, however, is lighter. It packs an app with everything the app needs, so it runs the same way anywhere. Teams often run many containers with Kubernetes, a tool that starts, stops and moves containers across a group of servers.
The main difference is who does the work. With VMs, your team manages almost everything above the hardware. Containers take away some of that work, but your team usually still manages the group of servers they run on, unless a cloud service such as AWS Fargate handles it. In contrast, serverless leaves the servers, scaling and patching to the provider. In short, serverless gives up some control in return for much less upkeep. To see when each choice makes sense, read Serverless vs Containers: Choosing How to Run Your App.
Serverless Computing vs Cloud Computing, IaaS and PaaS
Serverless computing is one way to use cloud computing. The cloud offers several service models, and each one hands a different share of the work to the provider.
- Infrastructure as a Service (IaaS): you rent virtual servers, storage and networks. You still install, patch and scale your software yourself.
- Platform as a Service (PaaS): the provider also runs the operating system and tools. You put your app on it, but you often still pick how many machines to keep running.
- Serverless: you deploy code or use ready-made services. The provider handles servers, scaling and patching, and nothing runs when no one uses it.
| Question | IaaS | PaaS | Serverless |
|---|---|---|---|
| Who patches servers? | Your team | The provider | The provider |
| Who decides how much computing power? | Your team | Mostly your team | The provider, automatically |
| Runs when idle? | Yes, all the time | Usually yes | No, it can scale to zero |
| How you pay | For servers while they run | For the plan or machines chosen | For actual use |

Benefits and Drawbacks of Serverless Computing
Serverless helps many teams, but it has limits worth knowing before you build.
Benefits
- No servers to patch: the provider installs security updates, so your team spends that time on the app itself.
- Automatic scaling: the app grows from ten users to ten thousand without anyone adding machines.
- Pay per use: you pay for the work your code does, not for servers that sit idle at night.
- Faster releases: small functions are quick to build, test and change one at a time.
Drawbacks
- Cold starts: after a quiet spell, the first request may wait a moment while the code wakes up.
- Time limits: each run has a maximum length, so teams split very long jobs into steps or move them elsewhere.
- Lock-in: code built around one provider’s services can take real work to move to another.
- Harder tracking: one customer action may touch many small functions, so finding the cause of an error needs good logs, the records of what each function did and when.
Costs can also surprise teams when traffic stays high all day, because steady, heavy work is sometimes cheaper on always-on machines. For a closer look at these limits and how teams handle them, read Serverless Challenges: Cold Starts, Limits and Cost Surprises.
Talk to an ExpertIs your team still running servers for small, occasional jobs? Talk to our team about serverless computing.Serverless Computing on AWS and Azure
In fact, both AWS and Microsoft Azure offer a full set of serverless services. Most real apps combine several of them, for example a function, an API front door and a database.
AWS Serverless Services
- AWS Lambda: runs your code when an event arrives, with no servers to manage. Since 19 November 2026, a single run of an on-demand Event Function can last up to 30 minutes, up from the earlier 15-minute limit. These are the original kind of Lambda function, which run on computing power that AWS supplies only when an event calls them (“on demand”). Other Lambda types have their own limits.
- Amazon API Gateway: helps your team create and protect the APIs that apps call, and passes each request to the right function.
- Amazon DynamoDB: a serverless database. With its on-demand mode, it grows with traffic and scales down to zero when no one uses it.
- AWS Fargate: runs containers without your team managing the servers underneath them.
Azure Serverless Services
- Azure Functions: Microsoft’s service for running code on events. It comes in several hosting choices, called plans. For new serverless apps, Microsoft recommends the Flex Consumption plan. The older Consumption plan is being phased out. Its Linux version gets no new features, and Microsoft will retire it on 30 September 2028.
- Azure Container Apps: a serverless platform for running containers. Most apps on it can scale to zero when idle.
- Azure Logic Apps: lets your team build automated workflows with little or no code, for example routing a large order to a manager for approval.
Limits differ by service and plan. For example, when a website or app calls Azure Functions and waits for an answer, the answer must come back within 230 seconds, whatever time limit your team sets. So check the current limits in the official AWS and Microsoft help pages before you design long jobs.
When Should You Choose Serverless?
Serverless is a good fit when work comes in bursts, jobs are short and your team is small. It also helps when you want to test a new idea quickly without buying servers. Long, steady jobs that run all day, or older apps that expect one fixed machine, often suit VMs or containers better.
Many companies also mix approaches. For instance, a team may keep its main app on containers and use functions for emails and reports. Our guide Monolith vs Microservices vs Serverless: How to Choose compares all three.
Frequently Asked Questions About Serverless Computing
What is a serverless computing platform?
What is the difference between serverless computing and SaaS?
How does serverless computing fit cloud native development?
How is serverless architecture different from a traditional server-based setup?
How does serverless computing relate to microservices?
What does serverless computing mean?
References
- AWS Lambda limits, including the 30-minute run time: AWS, Lambda quotas (AWS Lambda Developer Guide)
- Lambda timeout raised from 15 to 30 minutes: AWS, AWS Lambda now supports a 30-minute timeout for on-demand Event Functions (19 November 2026)
- Azure Functions plans and limits: Microsoft Learn, Azure Functions hosting options
Get the Latest Terms & Insights.
New encyclopedia terms, threat intelligence, and architecture decisions, by email.
