Function as a Service, or FaaS, is a cloud model where small pieces of code run in response to events. The platform starts, runs, scales, and stops the function as needed.

What triggers a function?

A function can be triggered by an HTTP request, file upload, scheduled job, queue message, database event, or monitoring alert. This makes FaaS useful for event-driven systems.

How FaaS differs from servers

Instead of running a server all day, the function usually runs only when needed. This is a major part of serverless computing.

FaaS works best for focused tasks, not every application workload.