Skip to Content

Serverless

What serverless means, the serverless services on AWS, a typical serverless web application, and the map of this group.

What it is

Serverless is a way of building applications where developers don't manage servers anymore. They just deploy code, or functions.

  • At first, serverless meant FaaS (Function as a Service), pioneered by AWS Lambda.
  • Today it includes anything managed where the customer doesn't provision capacity: databases, messaging, storage and more.
  • Serverless doesn't mean there are no servers. It means the customer doesn't manage, provision or even see them. Billing is per use, and capacity scales by itself.

Serverless on AWS

Services covered in earlier groups, and some in this group:

  • AWS Lambda (functions) and AWS Fargate (containers);
  • DynamoDB and Aurora Serverless (databases);
  • Amazon S3 (storage);
  • Cognito (users), API Gateway (APIs);
  • SNS, SQS, Data Firehose, Step Functions (integration).

A serverless web app: users load static content from Amazon S3, log in with Cognito, and call a REST API on API Gateway, which runs Lambda functions that read and write DynamoDB A serverless web app: users load static content from Amazon S3, log in with Cognito, and call a REST API on API Gateway, which runs Lambda functions that read and write DynamoDB

A whole web app with no servers to manage.

A typical serverless web app:

  1. Users load the static content (HTML, JavaScript, images) from S3, usually through CloudFront.
  2. They log in with Cognito.
  3. The app calls a REST API on API Gateway.
  4. API Gateway runs Lambda functions with the business logic.
  5. Lambda reads and writes DynamoDB.

Nothing runs (or costs much) when nobody uses it, and every part scales on its own.

In this group

Related serverless topics live in other groups: DynamoDB, Step Functions, Cognito, edge functions and Fargate.

Exam tips

  • "No servers to manage", "pay only for what you use", "scales automatically" → a serverless design (Lambda, API Gateway, DynamoDB, S3, Fargate).
  • "Serverless REST API" → API Gateway + Lambda (+ DynamoDB).
  • "Least operational overhead" usually points to the serverless option.

Common traps

  • "Serverless means no servers at all." AWS runs them; the customer doesn't manage them.
  • "Serverless is only Lambda." DynamoDB, S3, SQS, SNS, Fargate and many more are serverless too.

AWS documentation

On this page

Open notes

Spotted a mistake?

These notes are open source. Suggest a fix, or star the repo if they helped you.

Suggest an edit

For AI agents: llms.txt · llms-full.txt