Serverless refers to a class of cloud services that require minimal or zero server management, configuration, patching, provisioning or scaling by the user.

There are still servers, of course, but they’re entirely the provider’s problem. A service is usually described as serverless when:

Serverless compute

The best-known examples are serverless functions such as AWS Lambda, Azure Functions and Google Cloud Run functions. You write code that responds to events (an HTTP request, a file landing in storage, a message on a queue, a schedule) and the platform runs it, scaling out as events arrive, without you managing any infrastructure.

Serverless isn’t only about functions. Serverless containers such as AWS Fargate, Azure Container Apps and Google Cloud Run run whole container images on the same pay-per-use, no-servers basis.

Event sources trigger functions that use managed servicesEventsYour codeManaged servicesHTTP requestFile uploadedMessage on queueScheduleFunctionscales 0 → manyDatabaseEvent bus / queueObject storage
Events trigger functions, which scale automatically and work with managed services. There are no servers to manage anywhere in the picture.

Beyond compute

Serverless also applies to:

Event-driven architecture

See Event-Driven Architecture for a fuller treatment.

Serverless works best with event-driven architectures, where small, independent components react to events and communicate through managed queues and event buses rather than calling each other directly. This gives low coupling, independent scaling and the ability to change one part of a system without redeploying the rest, all of which help when architecting for change.

Trade-offs

Serverless is a great default (see the mental model), but it has trade-offs to understand: