Skip to content

What is FaaS (Function as a Service)?

Functions that run only when an event calls them: no servers to manage, you pay only for what you run.

FaaS is the execution model where code runs as short-lived functions triggered by events, with no servers to provision or manage. A developer publishes a function, specifies which event triggers it (an HTTP request, a file uploaded to storage, a queued message, a schedule) and how much memory it needs; the provider handles the rest: it allocates resources when the event arrives, runs the function, and releases everything when it finishes, scaling to zero when there is no traffic. Billing follows the same principle: you pay per invocation and actual execution time, not for reserved capacity. AWS Lambda pioneered the model when it launched in 2014; it has since been joined by equivalent functions from the other major clouds and by open alternatives such as Knative and OpenFaaS. FaaS is a subset of serverless: all serverless hides servers, but only FaaS shrinks the unit of execution to the single event-driven function: the layer above PaaS and IaaS where you still write code.

See also: Serverless vs On-prem vs EdgeServerless, on-prem and edge describe how and where compute runs: serverless offloads server management, while the other two say where infrastructure sits.

How it works: triggers, short-lived execution, and limits

The first execution after idle time incurs a cold start: the provider must prepare the runtime before running the code, so the response arrives later; later executions reuse the warm environment and are fast. That is why FaaS excels with intermittent traffic and struggles on synchronous paths with strict latency requirements. It is the execution side of event-driven architecture: the trigger is an event that has already occurred, the function reacts and disappears. The second rule is that functions hold no state: no invocation can assume anything in memory survives to the next one, so all state lives in external services (databases, queues, storage). The third is that limits are tight and non-negotiable: on AWS Lambda a single execution cannot exceed 15 minutes, memory ranges from 128 MB to 10 GB with proportional CPU, and the synchronous payload is a few megabytes; work beyond those thresholds must be split up or moved to containers. The operational downside is debugging: local environments lack the provider's event sources, and emulators diverge from real behavior, so problems surface in production. And lock-in lives in the triggers: functions wired to one cloud's queues, permissions, and ancillary services can only be moved by rewriting their integrations. Teams that want the same semantics on their own infrastructure can use Knative or OpenFaaS on Kubernetes, at the cost of operating the platform themselves.

An enterprise example

A small business whose ERP recalculates stock and price lists every night, and whose site takes a few dozen orders a day, can put the recalculation on a scheduled function and order intake on a function called by the site webhook. Between orders nothing runs and nothing is billed; during spikes, after a campaign, the provider opens many parallel instances with no servers provisioned in advance. Compare that with an always-on server: with a few thousand short executions a month pay-per-use wins, while constant heavy load would make an always-on server cheaper.

Why it matters for decision makers

For decision makers, FaaS shifts the question from how much capacity to buy to how spiky the workload is: unpredictable spikes and low volumes reward it, constant traffic and rigid latencies punish it. The choice across deployment models goes beyond functions alone: when FaaS is enough and when dedicated infrastructure is needed is the decision across models, with its four axes. Functions exposed over HTTP sit behind a gateway that governs access and rate limits, and spending needs FinOps discipline because uncapped pay-per-use grows unchecked.

  • Serverless vs On-prem vs EdgeServerless, on-prem and edge describe how and where compute runs: serverless offloads server management, while the other two say where infrastructure sits.
  • Event-driven architecture (EDA)Services exchanging facts that already happened through a broker, instead of calling each other directly and synchronously.
  • API gatewayThe single entry point for externally exposed APIs: authentication, rate limiting, versioning and CORS handled outside application code.
  • FinOpsFinOps brings technology, finance, and business teams together to allocate technology spending, control its costs, and weigh them against business outcomes.
  • Scale to zeroScale to zero shuts down even the last instance of a cloud service when no requests arrive: no idle compute bill, but a cold start on the next request.

See it in the universe

If it reminds you of a system nobody dares touch anymore, that is what I put back in order.

See Software Rescue

Or write to me.