Skip to content

Serverless computing

Also called: serverless, serverless architecture, FaaS, function as a service, functions as a service

Published:

Where do the servers go in serverless computing?

Nowhere. They still exist; you just stop managing them. AWS describes Lambda as a way to run code without provisioning or managing servers, with Lambda handling maintenance, capacity provisioning, scaling and patching [1]. Billing is pay-per-use, with no upfront commitment [1]. Google Cloud Run makes the same promise: no cluster to create, no infrastructure to manage. Under request-based billing you are not charged for an instance that is not processing requests, and an idle service can drop to no running instances at all, which Google calls scale to zero [3].

A concrete case: a small function fires whenever a photo lands in Amazon S3, writes a thumbnail and exits. In Lambda you write a handler, connect it to a trigger such as S3, SQS or API Gateway, and each invocation runs independently, scaling out horizontally to match demand [1].

Is serverless the same as FaaS?

Not quite. In Microsoft's taxonomy, functions as a service (FaaS) means you deploy code and the service runs it automatically; Azure Functions is the example [2]. The same guide describes a trade-off from IaaS to FaaS: less control, less to manage, with FaaS handling nearly every aspect of running the application [2]. Serverless is broader than functions, though. The guide also lists container services such as Azure Container Apps as serverless [2].

What does serverless cost you?

Scaling to zero has a price. When a service scales up from zero, the first requests can take longer to answer [3]. State is not guaranteed either: Lambda may reuse an execution environment, but data might not persist between invocations [1].

Frequently asked questions

Are there really no servers?

There are. The cloud provider runs, patches and scales them, and you never see or manage them.

What is a cold start?

When a request reaches a service that has scaled to zero, a new instance has to start first. Cloud Run's documentation notes this can increase response time for those initial requests.

Sources

  1. What is AWS Lambda? — AWS Documentation
  2. Choose an Azure Compute Service — Microsoft Learn
  3. What is Cloud Run — Google Cloud Documentation

Related terms