# Serverless Computing

> Run code with no servers to look after. Pay only while it runs.

**Field:** Infrastructure  
**Category:** Virtualization & Cloud  
**Also known as:** Serverless, Serverless Architecture

## Think of it like

Think of it like a taxi instead of owning a car. You ride when you need to and pay per trip.

## Definition

Serverless computing is running code without looking after any servers yourself. There are still servers, but the cloud firm starts them when needed and stops them after. You pay only while your code runs, often by the thousandth of a second. It grows from zero to thousands of copies on its own. The catch is less control, time limits and a short delay when code wakes from sleep.

## Example

Jack's photo app resizes each upload with serverless code. On a quiet night it costs almost nothing, and on a busy day it handles 50,000 photos.

## Why it matters

You pay nothing when nobody uses your app, and you never patch a server.

## Common mistake

Thinking serverless means no servers. They exist; you just do not see or run them.

## Three principles

- **No servers to run.** The cloud handles them.
- **Pay while it runs.** Zero when idle.
- **Grows on its own.** From none to many.

## Related terms

- [Function as a Service (FaaS)](https://learn.benibix.com/term/infrastructure/function-as-a-service)
- [Platform as a Service (PaaS)](https://learn.benibix.com/term/infrastructure/platform-as-a-service)
- [Cloud Computing](https://learn.benibix.com/term/infrastructure/cloud-computing)
- [Infrastructure as a Service (IaaS)](https://learn.benibix.com/term/infrastructure/infrastructure-as-a-service)
- [Serverless GPU](https://learn.benibix.com/term/ai/serverless-gpu)

## Told apart from

- [Serverless vs PaaS](https://learn.benibix.com/compare/serverless-vs-paas): Serverless computing and platform as a service both hide the servers from you, but they bill and run code in different ways. A PaaS keeps your app running all day, and you pay for that time. Serverless runs your code only when something calls it and stops after. You pay per run. Serverless is cheaper when traffic is low or spiky.

## Taught in

- [Serverless and FaaS](https://learn.benibix.com/learn/infrastructure-virtualization/serverless-and-faas): Cloud Computing, 5/11

---

Source: https://learn.benibix.com/term/infrastructure/serverless-computing
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-18
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
