Skip to main content

Serverless

Updated 2 min read

Share this page

Send the link, quote the definition with a link back, or show it as a card on your own site.

https://softwaredictionary.org/terms/serverless

In short

Serverless is a cloud model in which the provider runs your code on demand, manages all the servers, scales automatically, and bills only for actual use.

What is serverless computing?

Serverless computing lets you run code or use backend services without provisioning or maintaining servers yourself. There are still servers, of course, but the cloud provider manages them entirely, including operating system updates, capacity, and scaling, so you can focus on your application code.

The best-known form is functions as a service (FaaS), such as AWS Lambda, Azure Functions, Google Cloud Run functions, and Cloudflare Workers. You upload a function, and it runs in response to an event, like an HTTP request, a file upload, a queue message, or a schedule. The platform starts as many copies as needed, scales to zero when idle, and charges per request and execution time.

An analogy is taking a taxi instead of owning a car: you don't handle maintenance, parking, or insurance, and you pay only for the rides you take. Serverless also includes managed services such as serverless databases, storage, and message queues, which follow the same idea of paying per use with no servers to manage.

Serverless has trade-offs. A function that has not run recently may suffer a cold start, a short delay while the platform spins it up, and functions usually have time and memory limits that make them a poor fit for long-running jobs. Compared with containers, serverless gives you less control over the environment, but also far less operational work.

At a glance

Serverless: events such as an HTTP request, a file upload or a timer start your function. The cloud provider runs as many copies as the traffic needs on servers it manages, none when idle, and bills only for the runs.the provider runs servers and scalingHTTP requestfile uploadtimeryour function · 1your function · 2your function · 30 copies when idleyou pay per runnot for idle servers
There are still servers; you just never manage them. The trade-offs: a slower first run after idle (a cold start), time limits and ties to one provider.

Key takeaways

  • Serverless does not mean no servers; it means you don't manage them.
  • Code runs in response to events such as HTTP requests or file uploads.
  • It scales automatically, including down to zero when idle.
  • You pay per request and execution time, not for idle servers.
  • Watch for cold starts, execution time limits, and vendor lock-in.

Example

A serverless function (AWS Lambda, Node.js)javascript
// Runs only when an HTTP request arrives; no server to manage
export const handler = async (event) => {
  const name = event.queryStringParameters?.name ?? "world";

  return {
    statusCode: 200,
    headers: { "Content-Type": "application/json" },
    body: JSON.stringify({ message: `Hello, ${name}!` }),
  };
};

Readers ask

Does serverless mean there are no servers?

No. Servers still run your code, but the cloud provider manages them completely, so you never provision, patch, or scale them yourself.

What is a cold start in serverless?

A cold start is the extra delay when the platform has to start a new instance of your function because none is ready, ranging from tens of milliseconds to a few seconds depending on the runtime and platform. Frequently used functions stay warm and respond faster.

What is the difference between serverless and containers?

With containers, you package the whole environment and usually decide how and where it runs, often with Kubernetes. With serverless, you provide just the code, and the platform handles running it, scaling it, and billing per use.

See also

Spotted a mistake or something missing on this page?Suggest an edit

Read a random page
Open today's review
Switch to the dark theme
Read this page in Türkçe

More

Settings