What is Serverless Computing?
Serverless computing, told as a story about an hourly meeting room that opens only when you actually need it.
Keeping a whole office for something you use rarely feels wasteful.Even though that office sits empty almost all year.
Even unused hours still rack up fixed cost.Isn't there a way to pay only for what's used?
Serverless = an hourly meeting room that opens only when used.The building handles all the "office" management for you.
Always-on office and hourly meeting room differ on cost, upkeep, standby, and opening speed.For occasional work, the hourly room costs less than an always-on office.
An hourly room is a bit slow to open at first (cold start), and it's not great for long-running work.The hourly room (serverless) fits short, occasional work best.
Serverless is an hourly meeting room whose door opens automatically only when used, and you pay only for the time used. The building handles all the "office" management for you.
It doesn't mean there's no server — it means the cloud provider manages it, so you never have to. Code runs only when triggered (event-driven, e.g. FaaS), and billing follows exact usage. When code that was shut down after a while without requests wakes up again, the delay is called a cold start.
When grown-ups say it
- Serverless
- The meeting room that opens only when used. It's not that there's no server — you just never manage one.
- FaaS (Function as a Service)
- Handing the room just one single task to run. When a request arrives, the function that handles it runs.
- Event-driven
- The door opens only when a request arrives. With no request, your code doesn't run.
- Cold start
- The time it takes to open a closed door for the first time. Frequently used functions are already awake, so this delay shrinks.
- Pay-as-you-go
- Paying only for the hours actually used. The opposite of an always-on office's flat rent.
- VM / Container
- The always-on private office or partitioned desk. A step heavier than serverless. → the private office and the partitioned desk
- Auto scale
- Automatically adding more meeting rooms. In serverless, the building adds rooms completely on its own. → bigger office or more offices
- Edge computing
- A small branch office close to the neighborhood. Serverless functions are sometimes placed at the edge too. → the small branch close to the neighborhood