FaaS

Definition

Function as a Service - execute individual code functions in the cloud without server management, enabling scalable and efficient computing.

Use Cases

Provider Equivalents

Frequently Asked Questions

What’s the difference between FaaS and PaaS?
FaaS runs small, event-triggered functions and automatically scales them per request; you deploy individual functions, not a full app server. PaaS (like app hosting platforms) runs long-lived applications or services where you deploy an app and the platform manages the underlying infrastructure, but you still think in terms of an always-on web app/process.
When should I use FaaS (serverless functions)?
Use FaaS when your work can be broken into small tasks triggered by events (file uploads, HTTP requests, queue messages, database changes, scheduled jobs). It’s especially useful for spiky or unpredictable traffic, lightweight APIs, automation, ETL steps, and background processing. Avoid it when you need long-running processes, very low-latency warm execution at all times, or highly specialized runtime control.
How much does FaaS cost?
Most FaaS pricing is based on (1) number of invocations/requests, (2) execution duration, and (3) memory/CPU allocated (often tied together). You may also pay for related services like API gateways, message queues, logging/monitoring, and outbound network traffic. Costs are usually low for intermittent workloads, but can grow with high request volume, long execution times, chatty logging, or heavy network egress.

Category: cloud

Difficulty: advanced

Related Terms

See Also