A lightning bolt in the sky

Photo by emre varışlı on Pexels

Despite the name, servers are absolutely still involved in serverless computing. Nobody has invented software that runs on nothing. What's actually "server-less" is your relationship with those servers: you never provision one, never patch one, and never even know which physical machine ran your code. It's a bit like using a vending machine instead of hiring staff to run a small shop — the inventory and mechanics are all still there, just completely hidden from the person pressing the button.

This article explains what serverless computing really means, how it differs from the other cloud service models, and where it tends to shine or struggle.

What "Serverless" Actually Means

Serverless computing is a way of running code where the cloud provider automatically handles all server provisioning, scaling, and maintenance, and you're billed only for the actual computing time your code consumes. You write a piece of code — often called a cloud function — attach it to a trigger, such as a file upload or an incoming web request, and the provider takes care of running it whenever that trigger fires.

There's no server to leave running around the clock. If nothing triggers your code, nothing runs, and nothing is billed beyond perhaps a small amount of storage for the code itself.

How It Differs From the Other Service Models

ModelWhat you manageHow you're billed
IaaSOperating system, runtime, and application, on rented infrastructureUsually by time the infrastructure is reserved or running
PaaSYour application code on a managed, continuously running platformUsually by time the application is deployed and running
ServerlessJust the code for individual functions or tasksUsually by actual execution time and number of invocations

Serverless computing is often described as an evolution beyond PaaS: instead of keeping an entire application running continuously, the provider spins up tiny, temporary execution environments only when needed, then shuts them down.

The Vending Machine Analogy, Extended

A staffed shop (think IaaS or PaaS) keeps someone on the clock whether customers are walking in or not. A vending machine (serverless) sits dormant, consuming almost nothing, until someone presses a button — then it springs into action for a few seconds and goes quiet again. This matches how serverless billing usually works: you pay for the moments your code actually executes, not for idle time in between.

Why Teams Choose Serverless Computing

Where Serverless Computing Struggles

Typical Things People Build With Serverless Computing

A Closer Look at the Billing Model

Traditional infrastructure, even idle, usually keeps costing money because it's reserved and running regardless of whether anyone is using it. Serverless computing flips this: if your trigger never fires in a given hour, day, or month, you typically owe nothing beyond perhaps a tiny storage fee for the code itself. This article won't put specific numbers on that difference, but the underlying principle matters for understanding why serverless appeals to projects with bursty, unpredictable, or rarely used functionality — the billing follows actual use far more closely than with infrastructure that has to sit ready at all times.

Common Mistakes Beginners Make

Frequently asked questions

If serverless still uses servers, why is it called that?

The name refers to your experience, not reality. Servers absolutely exist behind the scenes, but the provider manages them so completely that you never need to think about, configure, or even know which server is running your code.

Is serverless the same thing as a cloud function?

A cloud function is the most common way to use serverless computing, but serverless computing also covers other on-demand services, such as some databases and messaging systems, that scale and bill themselves without you managing servers.

Is serverless always cheaper than running a server continuously?

It depends entirely on your usage pattern, and this article doesn't compare specific prices. As a general concept, serverless billing is usage-based, which tends to suit sporadic or unpredictable workloads better than constant, heavy ones.

What's a cold start, and why does it matter?

A cold start is the brief delay that happens when serverless code runs after sitting idle, because the provider has to prepare an environment for it first. For latency-sensitive applications, this delay is worth understanding before you rely on serverless computing.

Related reading

Sources