What is FaaS?
Also known as: Function as a Service
FaaS (Function as a Service) is a cloud computing model where users deploy small, stateless functions that the provider executes on demand, automatically scaling and billing per invocation.
FaaS, short for Function as a Service, is a category of cloud computing that allows developers to run individual pieces of code (functions) in response to events without managing the underlying server infrastructure. Each function is stateless, typically short-lived, and executed only when triggered by an event such as an HTTP request, a file upload, a database change, or a scheduled timer. The cloud provider handles all runtime provisioning, scaling, fault tolerance, and logging. Billing is based solely on execution time and resource consumption per invocation, often with a free tier for low usage.
A function is packaged as a unit of deployment, often bundled with its dependencies into a zip file or container image. When invoked, the provider allocates a lightweight runtime environment, executes the function, and tears down the environment shortly after completion. Cold starts occur when a function is invoked after a period of inactivity and the runtime must be initialized from scratch. Many FaaS platforms, such as AWS Lambda (launched 2014), Google Cloud Functions, and Azure Functions, offer integration with API gateways, message queues, and storage services to form event-driven architectures.
FaaS belongs to the broader serverless computing paradigm, where the cloud vendor abstracts servers away from the developer. It differs from Platform as a Service (PaaS) because the developer does not manage any running application processes or containers; the function is the unit of scale. FaaS is well-suited for microservices, data processing pipelines, webhook handlers, and IoT backends. It is not ideal for long-running or stateful workloads due to execution timeout limits (commonly 5 to 15 minutes) and ephemeral storage constraints.
Key facts
- Functions are stateless and ephemeral, with no persistent local storage between invocations.
- Billing is per invocation and compute time, often rounded to the nearest 100 milliseconds.
- Cold start latency can delay the first invocation after idle periods, typically 100 ms to several seconds.
- Execution timeout limits range from 5 to 15 minutes depending on the provider.
- FaaS natively supports event-driven triggers from HTTP APIs, message queues, and cloud storage events.
How it works in practice
Related terms
References
More in Cloud Computing
Availability Zone
An Availability Zone is an isolated, fault-tolerant data centre within a cloud region, with independent power, cooling, and networking to prevent single points of failure.
Cloud Bill Shock
Cloud bill shock is an unexpectedly high invoice caused by unmonitored resource usage, often from data egress fees, autoscaled compute instances, or orphaned storage volumes.
Cloud Cost Optimization
Cloud cost optimization is the continuous practice of measuring, analyzing, and reducing cloud spending through rightsizing instances, purchasing reservations, and eliminating waste.
Cloud Migration
Cloud migration is the process of transferring applications, data, and workloads from on-premises infrastructure or another cloud to a target cloud platform.
Cloud-Native
Cloud-native is an approach to building and running applications that exploit the elastic, distributed, containerized, and immutable nature of modern cloud infrastructure.
Edge Location
An edge location is a data center or point of presence deployed by a cloud provider at the network edge to serve content and run compute workloads closer to end users than a full parent region.
Egress Fees
A per-gigabyte charge imposed by cloud providers on network traffic that leaves their data center, availability zone, or internet boundary.
Hybrid Cloud
Hybrid cloud is a computing environment that combines a public cloud with a private or on-premises data center, connected by secure networking to enable workload portability and unified management.
IaaS
Infrastructure as a Service (IaaS) is a cloud computing model that provides on-demand access to virtualized compute, storage, and networking resources, which the customer configures and manages from the operating system upward.
Lift and Shift
Lift and shift is a cloud migration strategy that moves on-premises applications and data to cloud infrastructure with minimal or no changes to the original architecture.