Skip to content
BENIBIX Learn

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.

Infrastructure☁️ Virtualization & Cloud

Serverless Computing

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

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.
Full entry
Infrastructure☁️ Virtualization & Cloud

Platform as a Service (PaaS)

A cloud service where you hand over your code and it runs it for you.

Platform as a service is a cloud service that runs the code you hand it. It takes care of the servers, the operating system, updates and scaling. You only look after your app and its settings. Many hosts sell it for small web apps. You give up some control in exchange for much less work.

Example
Lucy pushes her web app to Heroku with one command. It builds, starts and gets a web address, and she never logs in to a server.
Why it matters
Small teams can ship real apps without anyone who knows how to run servers.
Full entry

In one line

Serverless Computing
Run code with no servers to look after. Pay only while it runs.
Platform as a Service (PaaS)
A cloud service where you hand over your code and it runs it for you.