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.
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.
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.
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.