Back to list
Lv.2

FaaS

Function as a Service

A cloud service that automatically spins up a server only while your code runs, then handles the processing for you.

In Simple Terms

FaaS is a system that automatically starts up a server only when your code needs to run, and handles the processing from there. For example, it's often used to automatically shrink an image the moment a user uploads one to a website. Since you're billed only for the time and number of times your code actually runs, it's easy to avoid paying for unused capacity.

Behind the Name

FaaS stands for Function as a Service. The word "Function" refers to a self-contained unit of code that performs a specific task. The name reflects how this model lets developers hand over all server management to the cloud provider and use their code as a service, function by function.

Take a Closer Look!

FaaS is a cloud service that lets you run your code just by uploading it, without having to manage any servers yourself.
In short, the cloud provider takes care of everything a developer would normally have to do to set up and prepare a server.

With a regular server, it has to stay running at all times even when your code isn't actively being used, and you keep paying for that upkeep.
FaaS, on the other hand, starts up only when triggered by something specific, like a user request, and shuts down automatically as soon as the processing is done.

This means you only pay for the time your code is actually running, with no charge for the idle time in between.
Even if traffic suddenly spikes, the number of servers is adjusted automatically, so your code keeps running smoothly.
This approach is commonly used for tasks that only need to run at specific moments, like automatically backing up data or sending push notifications from a smartphone app.